Local project is automatically connected!
git remote add origin git@github.com:you/my-awesome-project-name.git
- Important Rules:
- Anything on Master is deployable/Something you want to get paid for.
- Start branch names with your initials (suggestion, personal preference)
-
When to Make One:
- When you need feedback/help
- When you want to share ideas/bits of code with your group
- When you want to merge changes into master
-
Use @mention!
-
Fork & Pull vs Shared Repo & Pull
Closes #10
will close issue #10 in your issues log (or Waffle card!)- Closing Issues in Github
- Add notes on specific code by adding specific line numbers
- Click on "Files changed" and click on specific line to add a comment.
git ammend
git revert <Commit SHA>
- Creates a new commit that undoes the changes from a previous commit.
- This command adds new history to the project (it doesn't modify existing history).
git reset <Last Good Commit SHA>
- It modifies the index (the so-called "staging area").
- Or it changes which commit a branch head is currently pointing at.
- This command may alter existing history (by changing the commit that a branch references).
- *Preserves the working directory. commits = gone. contents = still on disk
git reset --hard <Last Good Commit SHA>
- When you want to undo BOTH commits and the changes in one karate chop)
- Removes EVERYTHING between now and the commit you specify.