Developing with Git and Github

530 views

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
530
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • git clone https://github.com/stuartf/sakai-bot.git git init git checkout -b myfeature git push origin myfeature
  • git add –patch git checkout filename git show <rev>:<path> git clone <path> git rebase -i <rev> git reset [--hard] git checkout -b newbranch; git rebase targetbranch git fsck –lost-found # then merge or checkout the commit you want
  • git ls-files git grep [alias] find = "!f() { git ls-files |grep $@; }; f" git cherry git log -S<string> #find commits that add or remove git log --grep <string> #find in commit messages git diff -w #or ?w=1 on github git stash git stash apply __git_ps1
  • git-<name> https://gist.github.com/1478177 http://developer.github.com/v3/ https://help.github.com/articles/post-receive-hooks
  • Developing with Git and Github

    1. 1. Developing With Git and Github Stuart Freeman, Georgia Tech June 10-15, 2012ng Community; Growing Possibilities
    2. 2. Simple git workflowGet a git repositoryMake a branchCommit early and oftenClean up if necessaryPushRequest pull 2012 Jasig Sakai Conference 2
    3. 3. Fixing MistakesInteractive stagingGet an old version of a fileReordering/squashing commitsResettingApplying same commits to another branchRestoring “lost” commits 2012 Jasig Sakai Conference 3
    4. 4. Time-saversFinding files and stringsAliasesFinding commitsIgnoring whitespace changesStashingBash completions/prompt 2012 Jasig Sakai Conference 4
    5. 5. ScriptingNaming conventionGithub APIsHooks and webhooks 2012 Jasig Sakai Conference 5
    6. 6. Q&A / Further readinghttp://git-scm.com/bookhttp://eagain.net/articles/git-for-computer-scientists/http://gitready.com/ 2012 Jasig Sakai Conference 6

    ×