Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Latest commit

 

History

History
24 lines (16 loc) · 733 Bytes

git-tips.md

File metadata and controls

24 lines (16 loc) · 733 Bytes

Git common practices

Commit early, commit often

It should go without saying that you save often as you work on a project. I personally keep my thumb and ring finger on Command + s respectively, all the time.

The step beyond that is committing with git so that you can manage a healthy project workflow.

Every time you finish a feature, fix a bug, etc - Add, Commit and Push your work.

git add myproject.js
git commit -m "Finish new function"
git push
Stay up to date by pulling in changes from upstream

I'll often notify you when there are important changes I've made to the repository.

To synchronize your copy on disk, use:

git pull upstream master