pranaypatel512 / Gitcommands
Here is a list of some basic Git commands to get you going with Git
Stars: ✭ 11
Projects that are alternatives of or similar to Gitcommands
OctoPrint-GitFiles
With this plugin, you can use a github/gitlab repository for keeping your OctoPrint Files collection up-to-date.
Stars: ✭ 28 (+154.55%)
Mutual labels: gitlab, version-control
10-days-of-git-and-github
asabeneh.github.io/10-days-of-git-and-github/
Stars: ✭ 786 (+7045.45%)
Mutual labels: gitlab, version-control
Gitea
Git with a cup of tea, painless self-hosted git service
Stars: ✭ 27,320 (+248263.64%)
Mutual labels: gitlab
Pailab
a package for versioning, automatization and analysis of machine learning development
Stars: ✭ 25 (+127.27%)
Mutual labels: version-control
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+7336.36%)
Mutual labels: gitlab
Owasp Threat Dragon Gitlab
OWASP Threat Dragon with Gitlab Integration
Stars: ✭ 17 (+54.55%)
Mutual labels: gitlab
Sonar Gitlab Plugin
Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
Stars: ✭ 630 (+5627.27%)
Mutual labels: gitlab
Scala Steward
🤖 A bot that helps you keep your Scala projects up-to-date
Stars: ✭ 812 (+7281.82%)
Mutual labels: gitlab
Opscloud
运维管理平台(阿里云),自动同步阿里云配置信息,堡垒机(容器),批量运维,Kubernetes,Zabbix管理等功能
Stars: ✭ 788 (+7063.64%)
Mutual labels: gitlab
Gitbeaker
🤖 GitLab API NodeJS library with full support of all the Gitlab API services.
Stars: ✭ 755 (+6763.64%)
Mutual labels: gitlab
Octohint
The missing IntelliSense hint for GitHub and GitLab
Stars: ✭ 906 (+8136.36%)
Mutual labels: gitlab
Gitlab Mirrors
A set of scripts adding the ability of managing remote mirrors to GitLab.
Stars: ✭ 719 (+6436.36%)
Mutual labels: gitlab
Git Touch
An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Stars: ✭ 663 (+5927.27%)
Mutual labels: gitlab
Trackdown
TrackDown - Issue Tracking with plain Markdown. If you are missing the "git clone" for your tickets from github.com or bitbucket.org, then this is for you. A lightweight Ticketing System for distributed and unconnected small Teams.
Stars: ✭ 10 (-9.09%)
Mutual labels: gitlab
GitCommands
####Here is a list of some basic Git commands to get you going with Git
Create
- Create a new local repository
git init
- Clone an existing repository
git clone [your_repository_url]
Track chages
- File status about local repository
git status
- Chages to remote[tracked] files
git diff [source_branch] [target_branch]
Add file
- Add all changes in commit
git add .
- Add single file in commit
git add -p [your_file_name]
Commit file
- Commit previously chaged file
git commit
- Commit all local changes
git commit -a
- Add single file in commit
git add -p [your_file_name]
- Amending the most recent commit message in editor
git commit --amend
- Amending the most recent commit message with new message
git commit --amend -m "New commit message"
See history
- See all commit log details
git log
- See commit log details about single file
git log -p [your_file_name]
- Only the commits of a certain author
git log --author=[author_name]
- Compressed log in one line:
git log --pretty=oneline
- Log details only for changes files
git log --name-status
Command for branch
- See all branch
git branch -av
- Switch exisiting branch
git checkout [your_branch_name]
- Create new local branch and switch to new branch
git checkout -b [your_branch_name]
- Delete a local branch
git branch -d [your_branch_name]
- Delete a remote branch
git branch -dr [your_branch_name]
- Add tag on current commit
git tag [your_tag_name]
Remote
- See all remote repository url
git remote -v
- See info about remote repository
git remote show [remote_repository_url]
- Add remote repository
git remote add [remote_repository_url]
- Fetch all branch structure from remote
git fetch
pull
- Fetch all changes from remote directory
git pull
git pull [remote] [branch]
push
- Fetch all changes from remote directory
git push
git push [remote] [branch]
- Publish your tags
git pull --tags
merge
- Merge branch into your current HEAD
git merge [your_branch_name]
- Solve conflics using mergetool
git mergetool
rebase
- Rebase with HEAD branch
git rebase [your_branch_name]
- Continue rebase after resolving conflicts
git rebase --continue
- Abort rebase
git rebase --abort
reset
-
Discard all changes in your local branch
git reset --hard HEAD
-
Discard local branch changes for single file
git checkout HEAD [your_file_name]
-
Revert specific commit
git revert [commit_hash]
-
Reset your local branch with specific commit forcefully and discard local changes
git reset --hard [commit_hash]
-
Reset your local branch with specific commit and discard local changes
git reset [commit_hash]
-
Use colorful git output
git config color.ui true
References
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].