DEV Community

loading...

Discussion on: Git for Amateurs

Collapse
oligospermia profile image
Mesalazine

Um okay, obviously you're learning this stuff at the moment. Here's another advice then, you can actually perform branch creation during checkout, that way you save about 0.00001 seconds and we all love to save time:

git checkout -b your-new-branch

You can also combine adding all files and commit message:

git commit -am "i'm adding it all"

And finally, instead of typing endless --set-upstream just pass -u:

git push -u origin your-new-branch

Looks like after doing all this we already saved about 0.00004 seconds.

Hello from Cebu!

Collapse
highcenburg profile image
Vicente G. Reyes Author

Aha! So that's what git commit -am does. I've used that on heroku(i think) but never really understood what it did.

прия́тно познако́миться, bai! Hi from Manila!