Git is my hero

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

    1 Favorite

    Git is my hero - Presentation Transcript

    1. Git is my hero Selena Deckelmann
    2. Not this guy:
    3. Git is my hero
    4. More like this:
    5. BEFORE: cp specialfile.c specialfile.c.bak vi specialfile.c cp specialfile.c specialfile.c.200809221522 ls -alr AFTER: git init git add specialfile.c git commit -m “making changes” vi specialfile.c git commit -a -m “made change, saved world”
    6. Why REVISION CONTROL?
    7. Figure out what you did (later) Document what you did (right then) Use tools designed for this
    8. A short history of Revision Control Systems:
    9. Ancient: SCCS (1972) Old School: RCS (ci / co) Centralized: CVS / Subversion Decentralized: Git / Mercurial / Bazaar / SVK
    10. DOWNLOAD: http://git.or.cz/
    11. Quickly: git clone git log git init git status git diff git commit git revert
    12. DEMONSTRATION
    13. Important notes: changing file names (git mv)
    14. Important notes: directories (if they're empty, git doesn't care about them) there's a way around this: .gitignore
    15. Empty directory recipe for .gitignore: * !.gitignore Note: Rules are recursive
    16. Best Practice: designate a place for “authoritative” storage
    17. Important notes: pushed changes aren't automatically shown in checked-out files (in the “authoritative” repo) Best practice: don't check out in the central repo
    18. Do things once: git remote add NAME $URL
    19. Git URLs: /home/you/git git://user@host/path/to/git ssh://user@host/path/to/git http://somehost.com/git
    20. REMOTES URL create with a refspec, located in one of: .git/config .git/remotes .git/branches Or on the command-line.
    21. git add remote community9 \\ ssh://selena@blah/home/selena/pg_top/ makes this: [remote “community9”] url = ssh://selena@blah/home/selena/pg_top/ fetch = +refs/heads/*:refs/remotes/community9/*
    22. More fun: git stash git branch git reset git push git pull get fetch git merge git rebase - DANGER!

    + Selena DeckelmannSelena Deckelmann, 2 years ago

    custom

    1695 views, 1 favs, 0 embeds more stats

    Very short talk on revision control systems and int more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1695
      • 1695 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 23
    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