Quick tip: change git default branch.


Hello there 👋

Recently, the github modify the name your pattern branch: master became main. 
With this change it is necessary to change the default GIT startup for future remote integrations.

To do this, apply the command on the terminal:
$ git config --global init.defaultBranch main

After that, follow the traditional steps for a standard commit: 
$ git init 

$git remote add <url>

$ git pull origin main

$ git add . 

$ git commit -m "new commit"

$ git push -u origin main

Questions or Suggestions? Contact me in my social networks.
GitHub: @yanbrasiliano
Linkedln: @yan-brasiliano
See you next time 💣💢💢


Popular posts from this blog

Restrict limit of use of SWAP memory.

How to Install ZenMap in Kali Linux 2020.3