Most important git commands you should always know as a develop

Most important git commands you should always know as a develop

  1. git init . : Used to initialise git repository.
  2. git add filename - it will add the file to staging area.
  3. git add . - this will add all files from the directory to the staging area;
  4. git commit - it will create a savepoint from staging area in our repository.
  5. git push - pushes code to remote server
  6. git pull - Git command used to update the local version of a repository from a remote
  7. git status - gives the status of changes we have made.
  8. git branch - lets you create, list, rename, and delete branches
  9. git checkout - used to switch between branches in a repository
  10. git clone - used to target an existing repository and create a clone, or copy of the target repository.
  11. git merge - combines sequences of commits into one unified history of commits.
  12. git log - is a utility tool to review and read a history of everything that happens to a repository