GIT Started
Powr Git workflow
Ideal git workflow we should follow
Setup​
Nuke staging:​
delete staging brunch at https://github.com/superpowr/powr/branches
in your console:
git branch -D
git checkout master
git pull origin master
git checkout -b staging
git push origin staging
the system will auto push it into powr-staging
Nuking Alpha​
In console.. $ git checkout master
$ git pull origin master
$ git branch -D alpha
$ git checkout -b alpha
$ git push -f origin alpha
Cherry pick commands for git:​
git cherry-pick sha where sha is the commit sha hash.
to pick and choose where or not to add each of your changes
git add -p
y => yes
n => now
q => quit
and so on
Push current branch to GitHub​
git config --global push.default current
now you are able to run
git push
and the current branch will be pushed to github