First of all create a local repository in the folder preferably with:
git init
This will create a. git in the folder for git to recognize as a repository.
The flow I learned was this:
Clone the repository:
git clone https://github.com/meunome/meurepositorio
After that the flow is as follows, there is the "Working Directory" which is where your files are, the "Index" which is the temporary area (where you will use git add) and the "HEAD" which is like the area you send back to the online repository.
You basically make the changes wherever you want, add the changes with the:
git add *
And then do the "head":
git commit -m "comentários das alterações"
It will be in "HEAD", to send back to the source repository:
git push origin master
It’s a very generic example that I put up, based on the en guide, but that’s how I learned.
Source: http://rogerdudler.github.io/git-guide/index.pt_BR.html
See if this helps you: https://try.github.io
– Bruno César
This helps me learn Git, so much so that I’ve completed the exercises on this site. I wonder what the workflow is like using github via linux terminal.
– William Pereira
For a more complete workflow like using the gitflow. It might include an answer with him, but if someone qualifies...
– gmsantos
@gmsantos get excited, can put yes. Every good answer is welcome! ;)
– William Pereira
I’m at work now, and here I don’t have access to use it, only at home :)
– gmsantos