➡️ git init: Initializes a new Git repository. This is the first command to start a new project in a GitHub repository. It creates a hidden .git subdirectory in your project directory ➡️ git clone: Creates a local copy of a remote repository. This command is used to clone a repository from a remote source to your local machine ➡️ git branch: Lists all branches in your repository. It can also be used to create a new branch ➡️ git checkout: Switches between different branches or commits. It is used to switch to a different branch or a specific commit ➡️ git add: Adds changes in the working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit ➡️ git commit: Records changes to the repository. This command takes a snapshot of the changes in the staging area and saves it to the project history ➡️ git push: Uploads local repository content to a remote repository. It is used to share your changes with others ➡️ git pull: Fetches changes from a remote repository and merges them into the current branch. It updates your local repository with the latest changes from the remote repository. ➡️ git merge: Combines the changes from one branch into another. It is used to integrate changes from one branch into another ➡️ git status: Shows the status of changes as untracked, modified, or staged. It helps you see which changes have been staged, which haven’t, and which files aren’t being tracked by Git
➡️➡️ These commands are fundamental for managing your codebase, collaborating with others, and keeping track of changes. Mastering them will significantly enhance your productivity and efficiency in software development projects. ➡️➡️
➡️ git stash: when you want to record the current state of the working directory and the index, but want to go back to a clean working directory. The command saves your local modifications away and reverts the working directory to match the HEAD commit. ➡️ git tag: Create, list, delete, or verify a tag object signed with GPG Add a tag reference in refs/tags/, unless -d/-l/-v is given to delete, list, or verify tags. Unless -f is given, the named tag must not yet exist. ➡️ The git commit --amend: command is a convenient way to modify the most recent commit. It lets you combine staged changes with the previous commit instead of creating an entirely new commit.