Created
December 14, 2013 17:52
-
-
Save zeroeth/7962442 to your computer and use it in GitHub Desktop.
git'n
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
| # LOCAL GIT REPO COMMANDS | |
| # | |
| # in project folder | |
| git init . | |
| # (rinse repeat this pattern) | |
| # CODECODECODE | |
| git add <files> | |
| # git add --patch for changing existing files selectively | |
| git commit | |
| # PUT IT ON GITHUB | |
| # | |
| # (go create a repo on github) | |
| git remote add origin git@github.com:<username>/<myrepo>.git | |
| git push -u origin master | |
| # NEW WORKFLOW | |
| # | |
| # (work work work) | |
| git add <files> | |
| git commit | |
| git push | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment