git status Get a visual of current changes. red changes are unstaged changes. Green changes are staged changes.

I use the following to clear all changes

git reset Unstage your changes

git checkout .

git checkout -- .

git clean -f -fd -fx

git checkout develop
git pull upstream develop --rebase
git checkout -b yourBranch
git push upstream yourBranch
git branch -u upstream/yourBranch yourBranchgit rebase develop

Before you push

git rebase develop

You should pull the latest develop into your branch before merging, so that you can create a merge commit which will run the latest develop ci functionality in your pr as well.

1. clone the shared repo, in this case: (<Organization>/<project>)

git clone <sharedRepo.git>

If you run


You should see it in your current local directory.

2. create a fork from the shared repo, in this case: (<Organization>/<project>) into your personal github, for example: (<yourName>/<project>)

3. now we make sure the local/cloned repo is pointing correctly.

git remote -v
git remote rename origin upstream
git remote add origin <yourFork.git>

4. Create your local develop tracking branch:

git checkout -b develop upstream/develop

The branch develop must already be in the shared remote, if it isn’t you can add it via github website by first searching for it, and when it isn’t found, an option to add develop will be provided.

5. Create your feature branch and start working:

git checkout -b develop_myFeature upstream/develop