I already have a solution created in github, I already created an account too, I just want to add my project already done in a repository, but I can not do it. I already added the github extension in visual studio.
I already have a solution created in github, I already created an account too, I just want to add my project already done in a repository, but I can not do it. I already added the github extension in visual studio.
I always use this site for reference.
create a new folder, open it, and run the
git init
to create a new repository.
Create a working copy in a local repository by running the command:
git clone /caminho/para/o/repositório
When using a remote server, your command will be
git clone usuário@servidor:/caminho/para/o/repositório
workflow
your local repositories consist of three "trees" maintained by git. the first one is its Working Directory that contains the current files. the second Index that works as a temporary area, and finally the HEAD that points to the last commit
(commit) you made.
add & Confirm You can propose changes (add them to Index) using
git add <arquivo>
git add *
This is the first step in the basic git workflow. To really commit these changes (that is, commit), use
git commit -m "comentários das alterações"
Now the file is sent to the HEAD, but not yet to the remote repository.
Sending Changes Your changes are now in the HEAD of your local working copy. To send these changes to your remote repository, run
git push origin master
Change master to any desired branch by sending your changes to it.
If you have not cloned an existing repository and want to connect your repository to a remote server, you must add it with
git remote add origin <servidor>
You are now able to submit your changes to the selected remote server.