GitHub
Getting started with GitHub from scratch: See Reference Video
Note: When we push the code to GitHub, check the branch where you have pushed the code files. The 2 important branches are "Main" and "Master".
Important GitHub Commands:
- git add - It lets you add changes from the working directory into the staging area
- git commit - It lets you save a snapshot of currently staged changes in the local repository, with a message
- git push - It lets you upload commited changes from the local repository to a remote repository
- git fetch - It lets you download changes from a remote repository, without applying them locally
- git merge - It lets you combine changes from one branch into another
- git pull - lets you fetch and then merge changes from a remote repository into the local branch
- git diff - It lets you see the changes not staged or commited yet
- git diff HEAD - It lets you see changes between the current working directory and the latest commit
- git status - It shows you the current state of the working directory and staging area
- git branch - lets you see all local branches
- git checkout - It lets you create a branch or switch between branches
- git log - It shows you commits in the current branch with extra details
- git stash - It lets you temporarily save uncommited changes and apply them later
- git rebase - It lets you apply commits from one branch to another
- git reset - It lets you undo changes in the working directory and move back to a specific commit
- git revert - It lets you undo changes by creating a new commit
- git cherry pick - lets you apply commits from one branch to another

Comments
Post a Comment