Read Time:1 Minute, 21 Second

Hello cousins and cousins, how are you?

Come check out these quick git command tips.

I believe you should use some of these commands every day.

  1. git init
    This is the command used to initialize a project as a git repository.
  2. git remote add origin
    This is the command used to add or connect to a remote repository.
  3. git remote
    This is the command used to view connected remote repositories.
  4. git status
    This command is used to view the status of files in your local repository.
  5. git add
    This command is used to prepare modified or untracked files.
  6. git reset
    This command is used to remove files.
  7. git commit
    This command is used to commit tested files and provide a confirmation message after testing.
  8. git push -u origin
    This command is used to push committed files to the GitHub repository.
  9. git fetch
    This command is used to fetch the most up-to-date version from your local repository. It checks for new files or new branches.
  10. git pull
    This command is used to take the information you just fetched and pull it into your local repository. It updates your local repository to the most up-to-date version.
  11. git branch
    This command is used to view the branch you are currently on.
  12. git merge
    This command is used to merge two branches. To do this, enter the branch you want to inherit the changes from.

Which of these commands do you use the most in your daily life, and if you felt high from any command, leave it in the comments.

Source: https://dev.to/albericojr/git-commands-every-developer-should-know-5ab1

WP Ad Inserter plugin for WordPress