Created
September 17, 2014 12:04
-
-
Save DerZyklop/6a5078505502619ba75b to your computer and use it in GitHub Desktop.
Clean way of contributing to a git project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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