Copies an existing repo to a new directory at a different location. git clone [repo url]
Creates a checkpoint and new feature without altering the original project. - Create a new branch git branch [branch] - Delete a branch git branch -d [branch]
Adds changes in the working directory to the staging area, preparing them to be included in the next commit. git add [filename]
Saves changes permanently with a message. It allows for accumulating major changes on a local level before pushing them to the global level. git commit -m "Your Commit Message"
Displays the current status of the repository, such as untracked files, added files, changed files, etc. git status
Fetches and merges the changes from the remote repository in the cloud into the local system. git pull
Sets configuration values on a global or local level, such as the author name and email ID with commit. git config -global user.name "[name]"
Undo the committed changes from a repository without changing file contents. git reset
Merges two distinct branches into one single branch. git merge [branch name]
Step Up Your Game with InterviewBit Web Stories