Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rcherara
Last active February 21, 2019 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcherara/6d91441c67bf585f32a1d5fc15e8ecb6 to your computer and use it in GitHub Desktop.
Save rcherara/6d91441c67bf585f32a1d5fc15e8ecb6 to your computer and use it in GitHub Desktop.
$ git init
$ git add .
$ git commit -m "First commit"
$ git remote add origin https://github.com/Reddah-Cherara/rcherara-api-book-go.git
$ git remote -v
$ git push -u origin master
$ git push --force https://github.com/Reddah-Cherara/rcherara-api-book-go.git
$ git push -u origin master
# Creating a feature branch
$ git checkout -b myfeature develop # Switched to a new branch "myfeature"
# Features may be merged into the develop branch to definitely add them to the upcoming release:
$ git checkout develop
Switched to branch 'develop'
$ git merge --no-ff myfeature
Updating ea1b82a..05e9557
(Summary of changes)
$ git branch -d myfeature
Deleted branch myfeature (was 05e9557).
$ git push origin develop
$ git checkout -b release-1.2 develop # Switched to a new branch "release-1.2"
$ ./bump-version.sh 1.2
$ git commit -a -m "Bumped version number to 1.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment