Can anyone explain to me the structure of Git with Github?

Asked

Viewed 87 times

0

I’m trying to set up Git with Github, but I’m not getting anyone to help me with that? Windows 10 operating system.

Example: I use Eclipse and my projects are created in the default directory C: Users Diego Workspace on my local machine, my repository created on the Github site is named Projects, as I must proceed to be able to configure Git, upload my projects on Github, And I’d also like to know if there’s any way to raise the ones we’ve already created, too.

1 answer

2


Example: I use Eclipse and my projects are created in the directory C Standard: Diego Workspace users on my local machine, my repository created on the site Github is the name Projects, as I should proceed to be able to configure Git..

clone the repository with the following command:

$ cd C:\Users\Diego\workspace\Pasta-do-Projeto
$ git clone url-do-repositorio

In this monento you already have your local repositorio pointing to the project on github

...and I would also like to know if there is a way to climb the already created also.

create the repository on github corresponding to your local project, once created, copy the project url. Access the project folder from the terminal and use the following commands

$ cd C:\Users\Diego\workspace\Pasta-do-Projeto
$ git init
$ git remote add origin https://github.com/usuario/nomedoprojeto.git
$ git add -A 
$ git commit -m "meu primeiro upload"
$ git push origin master

useful link:

  • Hello Leonardo. I will perform these steps now and inform you again. Thank you!

  • Hello Leonardo. Maybe I didn’t put it the right way. I have the directory created C: Users Diego Workspace Projects, I need to clone my repository https://github.com/diegocezarino/Aplicativos through the folder Projects or Workspace? This part I can’t understand. Explain to me better the part about adding a project already created for Github. Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.