basic commands

#create the repository, first thing when creating a projectgit init #shows you the current status of your repositorygit status #adds files or directories to the staging areagit add filename #commits the changes from the staging area to the repositorygit commit -m 'commit message'#shows the repositories graphgitk --all # to check the commitsgit log# get the last commit infogit log -1 # file which stores the ignore file patterns.gitignore #to checkout a commitgit checkout SHA1ID #to check the differences between working dir and latest commitgit diff #diff between those two commitsgit diff commit_id1 commit_id2 #server #to push to a servergit push #to manager remotesgit remote # to get the latest commitsgit fetch