GitHub is a code hosting platform for version control and collaboration. GitHub lets people collaborate and merge their work from any location. GitHub is a distributed version management system. Complete cheat sheet of git commands.
In this video we will learn the following commands.
1. git pull - The git pull command is used to fetch and download content from a remote repository and immediately update the local repository to match that content. Merging remote upstream changes into your local repository is a primary objective of this command.
2. git merge – The git merge command is used to combine two branches. The git merge command facilitates you to take the data created by git branch and integrate them into a single branch. Git merge will associate a series of commits into one unified history.
3. git reset - git reset is a powerful command that is used to undo local changes to the state of a Git repo. Git reset command moves HEAD back to the specified commit, undo all the changes made between where HEAD was pointing and the specified commit, and saves all the changes in the index.
4. git clean - git clean commands remove all untracked files from working directory. This command cleans the working tree by recursively removing files that are not under version control, starting from the current directory.
5. git revert - The git revert command is a forward-moving undo operation that offers a safe method of undoing changes. Instead of deleting or orphaning commits in the commit history, a revert will create a new commit that inverses the changes specified. Git revert is a safer alternative to git reset in regards to losing work.
6. git log - The git log command is used to view the history of committed changes within a Git repository. Each set of changes made by a developer is recorded as a commit in Git. The git log command shows a default output for quickly reviewing the commit history.
7. git diff - git diff is a multi-use Git command that when executed runs a diff function on Git data sources. These data sources can be commits, branches, files and more.
We learnt following commands in previous video:
1. git init – to initialize new GIT repository.
2. git status – to display the state of the working directory and the staging area.
3. git remote add – to add new remote repository for the local repository.
4. git add – to add the changes in the working directory to the staging area.
5. git commit – to commit a snapshot of all changes in the working directory.
6. git push origin master - to push the changes from local branch to the Github remote repository branch.
7. git clone - Cloning means making a copy of original object. In GIT, cloning is the act of making a copy of any target repository. You can clone a remote repository to create a local copy on your system.
8. git config - You can specify Git configuration settings with the git config command. you can use the –list on the git config command
9. git branch - You can create a new branch with the help of the git branch command. You want to add a new feature or a bug fix, so you create a new branch for the new changes you are doing and once your feature or fix is ready you can merge it with your main project branch. All team members works on their dedicated branches and later they merge their changes to the main branch.
10. git checkout - Git checkout command is to switch the branch. Git allows you to switch between the branches without making a commit. Git checkout with minus b option creates a new branch and switch to that new branch.
We have learnt following topics in previous video:
1. Learn to create GITHUB repository.
2. Learn to ADD files to GITHUB repository.
3. Learn to COMMIT files in to GITHUB repository.
4. Learn to PUSH changes from local repository to remote repository.
** Chapter Timestamps **
0:00 Welcome to GitHub Commands cheat sheet
0:41 Recap of Previous video on GitHub Commands
1:18 Agenda of this video more git commands
2:04 git pull command tutorial with example
6:54 git merge command tutorial with example
10:44 git revert command tutorial with example
15:29 git reset command tutorial with example
20:18 git clean command tutorial with example
23:38 git diff command tutorial with example
26:04 git log command tutorial with example
27:14 Summary of Git Commands
#git #github #gitcommands
** Previous Video Links **
What is GitHub Repository • What is GitHub? | 5 Reasons People Succeed...
Learn GitHub Repository Setup and Commands • What is GitHub? | Github tutorial and proj...
GitHub commands tutorial for Beginners • GitHub Commands Tutorial with Example for ...
** GITHUB Project **
https://github.com/codeonedigest/code...
** CHECK OUR PLAYLISTS **
GitHub Version Control Tutorial with Examples for Beginners
• GITHUB Repository Tutorial | Complete Guid...
Spring Boot Complete Tutorial • Spring Boot Tutorial with Project Setup, A...
** GET IN TOUCH **
Email us on codeonedigest@gmail.com
Nesta página do site você pode assistir ao vídeo on-line GitHub Commands Cheat Sheet | GitHub Commands Tutorial with Example for Beginners duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário codeonedigest 27 Dezembro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 367 vezes e gostou 8 espectadores. Boa visualização!