key commands:
Git is a widely used version control system. Here are some of the most common Git commands, categorized for better understanding:
1. Configuration and Setup- Set user name and email (required for commits)
- Initialize a new Git repository
- Clone a repository from GitHub/GitLab
- Add a remote repository
- Show remote repositories
- Check the status of changes
- Add files to staging area
- Commit changes with a message
- Commit all changes (skip staging step)
- List all branches
- Create a new branch
- Switch to another branch
- Create and switch to a new branch
- Merge a branch into the current branch
- Delete a branch
- Push changes to a remote repository
- Pull latest changes from a remote repository
- View commit history
- View a one-line commit history
- Show changes in commits
- Undo changes before staging
- Remove file from staging area
- Undo the last commit but keep changes
- Undo the last commit and discard changes
- Revert a specific commit (creates a new commit to undo changes)
- List all tags
- Create a new tag
- Push tags to remote repository
- Save uncommitted changes for later
- List stashes
- Apply the last stash
- Apply and remove the last stash
Addendum:
Double-click on the image to zoom-out ...Larger.
To return to Home page: Refresh Page or Take ESC Button on Keyboard
Double-click on the image to zoom-out ...Larger.
To return to Home page: Refresh Page or Take ESC Button on Keyboard
No comments:
Post a Comment