git

Contents

    No headings.

    find out status of git files
    git status

    commit new changes
    git commit -m 'message here'

    Add a file that is not being tracked yet:
    git add [new file]

    To delete files:
    (if you just delete stuff on the filesystem, it gets tracked for deletion automatically - nice)

    To find out where on github the origin lives
    git remote show origin 

    To push your commits up to github:
    git push origin

    To ignore certain files (like DS_Store) etc:
    Add a file called ".gitignore" and write space separated files to it like: "jc5-v01/.DS_Store [another_file_here] [etc]"

    To force getting newest stuff from github repo:
    git reset --hard HEAD 
    git clean -f 
    git pull
    Comments