Skip to content

Instantly share code, notes, and snippets.

@DerZyklop
Created September 17, 2014 12:04
Show Gist options
  • Save DerZyklop/6a5078505502619ba75b to your computer and use it in GitHub Desktop.
Save DerZyklop/6a5078505502619ba75b to your computer and use it in GitHub Desktop.
Clean way of contributing to a git project.
github_project='[projectname]' # e.g. github_project='kirby'
project_creator_username = # e.g. github_project='getkirby'
my_username='DerZyklop'
git clone "https://github.com/$project_creator_username/$github_project"
# now click the "fork" button
git remote add "$my_username" "https://github.com/$my_username/$github_project"
git checkout -b [name of my new feature]
# now add my changes (git add)
# now check my changes (git diff --cached)
# now commit my changes (git commit -m "message")
git push "$my_username" [name of my new feature]
# Now it's time to do the pull request!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment