Git

From Driscollwiki

Jump to: navigation, search

Contents

Working remote

  • $ git-fetch
    • Rebase changes: $ git-checkout master; git-rebase origin/master
  • $ git-push
    • Or as patches: $ git-format-patch origin/aster

Branching to work on new idea

  • Create new local branch: $ git-checkout -b topic-name master
  • Make commits to topic-name
  • When you're reading to merge: $ git-checkout master
  • Merge new branch: $ git-merge topic-name
  • Delete the working branch: $ git-branch -d topic name

Garbarge collector

  • Gets rid of unreferenced objects: $ git-gc

References

Personal tools