hello OPENMRS community kindly i am seeking your assistance on how to push my project to git hub so that it can be access for review. thanks
@janie before pushing the changes to github kindly ensure the changes exist by running
-
git status
(uncommitted changes are always in red color ) -
git add < file>
e.g git add pom.xl (the added file will then change to green color when you rungit status
) -
git commit -m" ticket Id + Commit message"
e.g git commit -m “TRUNK-324: Go through the TODO items code and create tickets out of them” to commit the changes to the repo. -
git push
to push the changes on the github and make a PR.
@janie Try git fetch
so that your local repository gets all the new info from Github. It just takes the information about new branches and no actual code. After that, the git commit
should work fine.
You basically see the branch, but you don’t have a local copy yet!..
You can simply fetch and then checkout to the branch, use the command below to do that:
git fetch
"git commit -m" ticket Id + Commit message"
This is how fetch works contrary to pulll
hope it helps
@thembo42 thanks so much. kindly when i run the command this is the out put
i kindly seek for your assistance.so you’re getting the above output because you’re using git commit -m “TRUNK-324: Go through the TODO items code and create tickets out of them”
.
Instead of git commit -m "TRUNK-324: Go through the TODO items code and create tickets out of them".
Always use the format git commit -m "your message"
please refer to this video to have a jumpstart in git → Git and GitHub for Beginners - Crash Course - YouTube `
What are you trying to achieve here?!
Kindly share the meeting link. I have 15min.
i am so grateful for your support as a community as today for the first time i have successfully pushed my ticket to github for code review and i successfully created a pull request on github concerning the ticket and it is ready for review…feeling so goood…thanks a lot every one for your time…special appriciation for @jwnasambu thanks for your assistance always. may God bless you all.