git clone repourl
- create repo on github/gitlab etc, then:
git init
git remote add repourl
git checkout -b branchname
if you have unstaged changes, these changes will follow you to the new branch
git checkout branchname
git commit (if you have unstaged changes)
git checkout master
git pull origin master
git checkout branchname
git rebase master
git commit (if you have unstaged changes)
git checkout branch2name
git pull origin branch2name
git checkout branchname
git rebase branch2name
git status
git add filename
git add filename2
git commit -m "commit message here"
git push origin featurebranchname
git status
git add .
git commit -m "commit message here"
git push origin featurebranchname