3 ms·
git checkout -b a-topic-branch git checkout master then you reset master to the remote master, there is a command to do it but I do this kind of things wit
by EdiX 13y ago
git checkout -b a-topic-branch
git checkout master
then you reset master to the remote master, there is a command to do it but I do this kind of things with gitk.
- deleted 13y ago[deleted]
- michaelmior 13y agogit checkout master git reset --hard origin/master
- graywh 13y agoAssuming you're already on master, you can replace those 2 commands with a single one: git branch a-topic-branch