How do I set up a project in Git and Github?

Asked

Viewed 246 times

5

I own a project on Github called ProdRegex it does not contain any file, I have saved the project on my PC in the following path ~/Projetos C/Feichas Aula/ProjetoProdRegex where is all the files of the project, and I have installed the git on my machine, but I don’t know how to configure the project on my machine to synchronize with my account on Github. I did some research even though I have difficulty in making this configuration, if anyone can help me already thank.

  • 1

    which git client are you using? example: Sourcetree

  • I’m following you there ;)

  • I’m following you back :)

1 answer

5


Github has an app, simpler than setting up native Git and using.

Basically, just install and link your Github account to it.

There will be in it 3 options: Add, Create and Clone:

  • Add: Add a local repository to it. Being a repository remotely connected to Github, it allows synchronization with Github;
  • Create: Create a new local repository. Then there is the option Publish, where you upload this repository to Github in your account;
  • Clone: Clones a Github repository for your machine. In your case, this would be the first option to use.

Remembering that the option Commit does not send data to Github. The options that do this are Publish (when the repository does not exist) and Sync (when the repository already exists). The option Commit only saves the state of that repository, allowing you to easily reverse the modifications if you wish.

  • 1

    Thank you for the reply.

Browser other questions tagged

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