github - Git workflow (commit/push/ & create pull request) -
i have created branch master, made changes , ready commit , force remote master.
do first need commit changes local branch
git commit -m "new changes, etc."
then
git force
to force remote?
is first part correct?
then how create pull request?
before anything, should aware perform pull request, have work in branch separate desired branch. branches super lightweight in git, , should utilize them time. create , switch on new branch, first git branch <new branch name>
, , check out using git checkout <new branch name>
. new branch created based on current branch (so if going create new 1 want based on master, create sure switch master first).
to commit, need first add together files you'd commit staging area. git add together <filename>
. if you'd add together files see when calling git status
, can git add together .
.
next can commit. prefer not add together message on command-line big changes, because have 1 screen showing me that's getting committed , isn't. think default editor vi, if don't sense comfortable vi, can specify editor through git config --global core.editor <your favorite editor>
.
you're ready force github! it! git push
now you're ready set pull request. head github , find repo. nail pull request button. have 2 of import drop downs now. box on left target branch. box on right source branch. set left master, , right new branch. add together comment, review everything, nail send pull request. ba-bam.
check out link on github more info , handy screen shots: https://help.github.com/articles/creating-a-pull-request
git github
No comments:
Post a Comment