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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
All pull requests should want merge to branch
devFork and clone
git clone https://github.com/<your git accout>/axmol.gitofficialfrom axmolengine/axmolcd axmol git remote add official https://github.com/axmolengine/axmol.gitCreate pull-request for bugfix or feature
There are two methods to create a pull-request
Propose file change(please ensure create branch on your own fork), 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
219is the PR id, thepr219is local branch nameSome other commands
Add chmod to file:
git update-index --chmod=+x path/to/fileSpeedup
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';" HEADClone with submodules,
--recurse-submodulesalso 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 HEADshow commits count:
git rev-list --count HEADforce reset local branch match with remote origin discard local changes:
git reset --hard origin/devBeta Was this translation helpful? Give feedback.
All reactions