
Building Your Portfolio Experience
Loading Tariqul Islam's projects...
Loading Tariqul Islam's projects...
Master the most important Git commands with this quick reference guide. Perfect for beginners and pros alike!
Command | Description |
---|---|
| Set your Git username (global setting). |
| Set your Git email (global setting). |
| Set VS Code (or your preferred editor) as default. |
| Show all current Git configuration. |
Command | Description |
---|---|
| Initialize a new Git repository. |
| Copy a remote repo to your local machine. |
| List remote repositories. |
| Link local repo to remote origin. |
Command | Description |
---|---|
| View modified and staged files. |
| Stage a specific file. |
| Stage all changes. |
| Commit staged changes with a message. |
| Add and commit tracked files in one step. |
Command | Description |
---|---|
| List branches. |
| Create a new branch. |
| Switch to a branch. |
| Create and switch to a new branch. |
| Merge a branch into current. |
| Delete a branch locally. |
Command | Description |
---|---|
| Push changes to remote branch. |
| Pull latest changes from remote. |
| Fetch changes without merging. |
Command | Description |
---|---|
| View commit history. |
| Condensed commit history. |
| Show details of a specific commit. |
Command | Description |
---|---|
| Undo changes in file. |
| Unstage a file. |
| Discard all changes (use with caution). |
| Create a new commit that undoes the changes of a previous commit. |
Command | Description |
---|---|
| List tags. |
| Create a new tag. |
| Push a tag to remote. |
Command | Description |
---|---|
| Save your uncommitted changes temporarily. |
| View stashed changes. |
| Reapply the last stashed changes. |
| Remove a stash. |