Create a new repository from the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:TV/ww.git
git push -u origin master
Push an already created repository from the command line
git remote add origin [email protected]:TV/ww.git
git push -u origin master
Create the Develop branch and push to the remote:
Create a new local branch: git checkout -b develop master
Push to remote: git push origin feature/v2.0
Merge the Develop branch to the Master branch:
# Switch to the Master branch
git checkout master# Merge the Develop branch
git merge --no-ff develop
Tag:
git tag -a 0.1.1
Delete branch:
Delete local branch:
git branch -d fixbug-0.1
Delete remote branch:
git push origin --delete feature/v2