Git commands
git --version
- git add add a file that is in the working directory to the staging area.
- git commit add all files that are staged to the local repository.
- git push add all committed files in the local repository to the remote repository.
in the remote repository, all files and changes will be visible to anyone with access to the remote repository.
- git fetch get files from the remote repository to the local repository but not into the working directory.
- git merge get the files from the local repository into the working directory.
- git pull get files from the remote repository directly into the working directory. It is equivalent to a git fetch and a git merge .
possible states files in working dir
- commited
- staged
- modified