Skip to content

A repository to accompany a git workshop

Notifications You must be signed in to change notification settings

raghavvi/LearninGit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LearninGit

A repository to accompany ACM's August 25th meeting, a git workshop.

Check out the presentation here: https://docs.google.com/presentation/d/1iZkIKBSVzhJRVIUgU1Lyav5LrjOXcKG428YARdFFeYo/edit?usp=sharing

Cheat Sheet

####Create a repo $ git init => Creates new repo in current directory
$ git clone [https://github.com/ACMatUC/LearninGit.git] => Copies repo down from remote directory

#####Committing $ git status => See status of files in repo
$ git diff => See change since last commit
$ git add [file name] => Add specific file(s) to the commit, add ‘--all’ to add all files to the commit
$ git commit -m “[Informative commit message]” => Commit added files to repo, with message

####Branching $ git checkout [Branch Name] => Switch to a different branch of given name, Add ‘-b’ to create the branch and then switch to it
$ git merge [Merge Branch] => Merges changes from named branch to current branch
$ git branch -d [Branch Name] => Delete a branch when you’re done with it

####Working with a Remote $ git pull origin => Pulls repo from remote repository
$ git push origin => Pushes repo to remote repository

About

A repository to accompany a git workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 71.4%
  • JavaScript 28.6%