Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.


    Line 1 is to switch to an existing branch, Line 2 is if you want to create a new branch.

    git checkout branch-name
    git checkout -b new-branch-name

  5. Set upstream branch to track remote branch.

    git push -u origin branch-name

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

    git add .

  7. Commit changes.

    git commit -m "message"

  8. Push changes to remote.

    git push

  9. All changes should now be in DevOps branch.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.