Skip to content

Instantly share code, notes, and snippets.

View sparrow's full-sized avatar

Volodymyr Vorobiov sparrow

View GitHub Profile
@sparrow
sparrow / console
Last active October 17, 2016 14:48
This commands will push project to GitHub and create a Master branch. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git init
git add
git commit -m "first commit"
git remote add origin git@github.com:kirillweb/rubygarage-gitflow.git
git push -u origin master
@sparrow
sparrow / console
Last active October 17, 2016 14:48
This command will copy project to local system. If the project doesn’t exist yet, then an empty folder with the name "rubygarage-gitflow" . We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git clone git@github.com:kirillweb/rubygarage-gitflow.git
@sparrow
sparrow / console
Last active October 17, 2016 14:48
This command will create a development branch. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git checkout -b development
@sparrow
sparrow / console
Last active October 17, 2016 14:48
We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git checkout development
@sparrow
sparrow / console
Last active October 17, 2016 14:48
This command need to see the list of all local branches on our computer we can run. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git branch
@sparrow
sparrow / console
Last active October 17, 2016 14:48
This code will delete a local branch from our computer . We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git branch -D <branch name>
@sparrow
sparrow / console
Last active October 17, 2016 14:48
This command will create a feature branch and name it. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git checkout -b feature/blog
@sparrow
sparrow / console
Last active October 17, 2016 14:47
This command will split off several feature branches at the same time. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git checkout -b feature/blog
@sparrow
sparrow / console
Last active October 17, 2016 14:47
This command will commit changes. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git add
@sparrow
sparrow / console
Last active October 17, 2016 14:47
This command will commit changes. We used this command in our blog post https://rubygarage.org/blog/release-quality-code-with-github at RubyGarage
git add --all