Super useful git commands | Your Code School #shorts #git
1) git init: This command is used to start a new repository
2) git clone: This command is used to obtain a repository from an existing URL
3) git status : The command displays the state of the working directory and the staging area.
4) git add : This command adds a file to the staging area
5) git commit: This command records or snapshots the file permanently in the version history
6) git push: This command sends the committed changes of master branch to your remote repository.
7) git log: This command is used to list the version history for the current branch
8) git fetch: this command used to download contents from a remote repository
9) git pull : This command fetches and merges changes on the remote server to your working directory
10) git merge: This command merges the specified branch’s history into the current branch.
11) git checkout: This command is used to switch from one branch to another
If this is useful to you then tell us in comments 👇🏼
@YourCodeSchool
#shorts #youtubeshorts #code #git