Answers for "Github branch cheatsheet"

0

Github branch cheatsheet

# Clone the git repo:
git clone https://remote-git-repo-url/demoproject

# Create new dev branch, do your work, and commit changes locally
git checkout -b dev
vi index.html
git commit -m "Made the change.." index.html

# Push your changes to remote dev branch
git push --set-upstream origin dev

# Merge dev branch to master
git checkout master
git merge dev

# Finally, delete dev branch both locally and remote
git branch -d dev
git branch -d -r origin/dev
Posted by: Guest on August-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language