Git Bash

To download Git Bash, go to https://git-scm.com/downloads

  1. Open up Git Bash.

  2. Navigate to the folder where you store your repos.

    cd /C/Users/lemi/source/repos/

     

  3. Update repo.

    git fetch

     

  4. Navigate to correct branch (if needed). The current branch is in brackets beside the path.

     

  5. If you want to create a new branch named “branch-name”:

    git checkout -b new-branch-name

     

  6. To switch to an existing branch named “branch-name”:

     

  7. Set upstream branch to track remote branch.

  8. Stage files to be committed (add to git tracking). The below command add all files.

    or if you have deleted files you want to stage. Otherwise, the above statement does not stage deletions (i.e.: delete files from the repo):

     

  9. Commit changes.

     

  10. Push changes to remote.

     

  11. All changes should now be in DevOps branch.