Git Cards - Powerpoint Format

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Git Cards - Powerpoint Format - Presentation Transcript

    1.  
    2. git init
      • Initialize a new git repo in the current working directory.
    3. git clone <clone_url>
      • Clone an existing git repo.
    4. git log
      • Show history of changes.
    5. git diff
      • Show changes to tracked files.
    6. git status
      • Show a list of changed files in the working directory.
    7. git add <path/file>
      • Add a new file to the current repo.
    8. git add .
      • Stage all new files and changes to tracked files for the current repo.
    9. git add -u
      • Stage all removed files and changes to tracked files for the current repo.
    10. git add -A
      • Stage all added files, removed files and changes to tracked files for the current repo.
    11. git commit -a
      • Commit all your local changes.
    12. git commit --amend
      • Amend your most recent commit with the current changes.
    13. git tag v1.0
      • Mark a version or milestone.
    14. git pull --rebase
      • Fetch from origin and fast forward your changes on top of it.
    15. git push
      • Push committed to changes to origin.
    16. git reset --hard
      • Discard all uncommitted changes in your working tree. Cannot be undone.
    17. git checkout <path/file>
      • Reset an individual file back to HEAD.
    18. git checkout <branch_name>
      • Switch branches.
    19. git branch
      • List all local branches for the current repo.
    20. git branch -r
      • List all remote branches for the current repo.
    21. git branch -d <branch>
      • Delete a local branch.
    22. git branch -d -r <branch>
      • Delete a remote branch.
    23. git checkout branch2 git merge branch1 git merge branch1
      • Merge branch1 into branch2
    24. git checkout -b new_branch old_branch
      • Create new_branch based on old_branch and switch to it.
    25. git stash
      • Stash uncommitted changes in current working tree.
    26. git stash pop
      • Apply stashed changes to current working tree.

    + Adam LoweAdam Lowe, 5 months ago

    custom

    423 views, 0 favs, 0 embeds more stats

    Deck for studying up on Git commands.

    This was pur more

    More info about this presentation

    © All Rights Reserved

    • Total Views 423
      • 423 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 7
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags