Pull down changes and checkout
git fetch
git br -r # list remote branches
git co -t release/2.0.0 # checkout remote branch locally
Source: https://www.git-tower.com/learn/git/faq/checkout-remote-branch
git stash save 'Description of stash'
git stash list
git stash apply
Create a repository on Bitbucket or Github.
To initialize a local git repository, add everything, and commit what you have added:
git init
git add .
git commit -m "Initial commit"
Then, add the remote repository and push your local changes:
- On Github:
git remote add origin [email protected]:aroques/[name-of-repo].git
git push -u origin main
- On Bitbucket
git remote add origin [email protected]:aroques/[name-of-repo].git
git push -u origin main