Here is a list of some useful git commands.
Initialize empty Git repository
git init
Enter fullscreen mode
Exit fu...
For further actions, you may consider blocking this person and/or reporting abuse
Hello, when you clone a repository, then the command:
Works as spected, becase the remote repository is configured with the master brach by default.
If isn´t the case you would configure it with:
In general: git push -u [name of remote] [name of branch]
at this manner when you are in any configured branch, 'git push' makes a push from the current branch to the remote.
Thanks for share
I also use following command to delete remote branch:
Hmm. This git command actually pushes your branch to a remote branch. I guess you forgot to add --delete .
No. I've added the
:
in front of my remote branch.This feature is available since Git 1.5 version is released :).
Yes.. TIL. Thanks!
Best thing you can do for your git game, is using ZSH that has a built-in git plugin. Check this out :) github.com/ohmyzsh/ohmyzsh/blob/ma...
And my two favorite aliases:
I use these all the time in feature branches
Yh, Nice! 👍🏽