Posts

Showing posts with the label GIT

GIT Cheat Sheet (All GIT Commands)

Image
GIT Cheat Sheet (All GIT Commands) Remember 1. git config command: git config –global user.name “[name]” command: git config –global user.email “[email address]” The command sets the author's email and name address to be used with your commits. 2. git init command: git init [repository name] The command is used to start a new repository. 3. git clone command: git clone [url] The command is used to obtain a repository from an existing URL. 4. git add command: git add [file] The command adds a file to the staging area. command: git add * The command adds one or more to the staging area. 5. git commit command: git commit -m “[ Type in the commit message]” The command records or snapshots the file permanently in the version history. command: git commit -a The command commits any files you’ve added with the git add command and also commits any files you’ve changed since then. 6. git diff command: git diff The command shows the file differences which are not yet staged. command: git diff