Skip to content

Instantly share code, notes, and snippets.

@priyankamk
Last active May 7, 2019 11:54
Show Gist options
  • Save priyankamk/780ccfedacbb81c4f5b95c5e791388f3 to your computer and use it in GitHub Desktop.
Save priyankamk/780ccfedacbb81c4f5b95c5e791388f3 to your computer and use it in GitHub Desktop.
how to add a pull request and checkout.md

When you do a pull request on a branch, you can continue to work on another branch and make another pull request on this other branch.

Before creating a new branch, pull the changes from upstream. Your master needs to be up to date.

Switch to master branch using:

git checkout master
git pull origin master

Create the branch on your local machine and switch in this branch :

git checkout -b github_user_name/[name_of_your_new_branch]

Push the branch on github :

git push origin github_user_name/[name_of_your_new_branch]

If working on group project do on rails migration

bundle exec rails generate migration AddUserNameToUser user_name:string

or if you are adding one or more details

bundle exec rails generate migration AddLinksToUser github:string twitter:string linkedin:string

and do bundle install if u dont have gem installed

bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment