...
Open up Git Bash.
Navigate to the folder where you store your repos.
Code Block cd /C/Users/lemi/source/repos/
Update repo.
Code Block git fetch
Navigate to correct branch (if needed). The current branch is in brackets beside the path.
Line 1 is to switch to an existing branch, Line 2 is ifIf you want to create a new branch .named “branch-name”:
Code Block git checkout -b new-branch-name
To switch to an existing branch named “branch-name”:
Code Block git checkout -b new-branch-name
Set upstream branch to track remote branch.
Code Block git push -u origin branch-name
Stage files to be committed (add to git tracking). The below command add all files.
Code Block git add .
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):
Code Block git add -A
Commit changes.
Code Block git commit -m "message"
Push changes to remote.
Code Block git push
All changes should now be in DevOps branch.
...