Contributing git guide #411
halx99
announced in
Announcements
Replies: 1 comment 1 reply
-
Need change axis to axmol name |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All pull requests should want merge to branch
dev
Fork and clone
git clone https://github.com/<your git accout>/axmol.git
official
from axmolengine/axmolcd axmol git remote add official https://github.com/axmolengine/axmol.git
Create pull-request for bugfix or feature
There are two methods to create a pull-request
Propose file change
, then continue to create pr on github page.Note: Before a pr mreged, any changes from pr source branch will be applied on pr and trigger ci build
Review pull-request
Usually, you can review PR changes on github web page, but when you want verify the PR changes on your local machine, you can merge PR to your local branch and test:
The
219
is the PR id, thepr219
is local branch nameSome other commands
Add chmod to file:
git update-index --chmod=+x path/to/file
Speedup
git add
,git status
,git commit
: Speeding up Git using a built-in file system watcher git-for-windows/git#3251, but may broken visual studio git managementChange commit author email:
git filter-branch --env-filter "GIT_AUTHOR_NAME='newname'; GIT_AUTHOR_EMAIL='newemail@xxx'; GIT_COMMITTER_NAME='newname'; GIT_COMMITTER_EMAIL='newemail@xxx';" HEAD
Clone with submodules,
--recurse-submodules
also works:git clone --recursive <repo-url>
git clone --recursive <repo-url>
git clone --recursive -j8 <repo-url>
(-j flag only available in version 2.8+):show current branch name:
git branch --show-current
, empty if not in branchshow short commit hash:
git rev-parse --short HEAD
show commits count:
git rev-list --count HEAD
force reset local branch match with remote origin discard local changes:
git reset --hard origin/dev
Beta Was this translation helpful? Give feedback.
All reactions