How to Make Changes in a Repository on Local Computer and Push to Github

Make Changes in a Repository on Local Computer and Push to Github

Make changes in the local repository directory. Open command prompt if you are using windows. Then type: git status to check any changes. Now type git add -A to add new changes. To commit your changes type git commit -m “your message here”.  To go into branch type git checkout -b <branch name here>.  Then push with the -u (short for –set-upstream) option. To push on Github type git push -u origin <branch>.

Leave a Reply