Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/developer-shourav/git-branching-marging
Here is some usefull Git branching And merging command that you need to know for working in a team project.
https://github.com/developer-shourav/git-branching-marging
git git-branching git-merge project-management team-work
Last synced: about 1 month ago
JSON representation
Here is some usefull Git branching And merging command that you need to know for working in a team project.
- Host: GitHub
- URL: https://github.com/developer-shourav/git-branching-marging
- Owner: developer-shourav
- Created: 2023-01-04T05:02:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T05:25:16.000Z (about 2 years ago)
- Last Synced: 2024-11-05T21:41:40.554Z (3 months ago)
- Topics: git, git-branching, git-merge, project-management, team-work
- Homepage: https://developer-shourav.github.io/Git-Branching-Marging/
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##
Git Branching And Merging All You Need To Know.
| Commands | Description |
| ------- | ----------- |
| **`git branch`** | List of branches (the asterisk indicates the present working branch) |
| **`git branch -a`** | List all branches (local and remote) |
| **`git branch [Branch_name]`** | To create a new branch |
| **`git branch -d [Branch_name]`** | Delete a branch |
| **`git push origin --delete [branch name]`** | Delete a remote branch |
| **`git checkout -b [Branch_name]`** | Create a new branch and switch to it |
| **`git checkout -b [Branch_name] origin/[branch name]`** | Clone a remote branch and switch to it |
| **`git branch -m [Old_branch_name] [new branch name]`** | Rename a local branch |
| **`git checkout [Branch_name]`** | Switch to a branch |
| **`git checkout -`** | Switch to the branch last checked out |
| **`git checkout -- [file_name.md/css/html/js/text]`** | Discard changes to a file |
| **`git merge [Branch_name]`** | Merge a branch into the active branch |
| **`git merge [Source_branch] [target branch]`** | Merge a branch into a target branch |
| **`git stash`** | Stash changes in a dirty working directory |
| **`git stash clear`** | Remove all stashed entries |