How to set up github in Ubuntu?

Asked

Viewed 1,638 times

2

Now that I’ve finished my final project on C and delivered at the end of that first semester.

I’m trying to configure and post my project to github.

I followed a video lesson and got configurar one repositório on my laptop. But I cannot upload the file to the same folder.

Before that, without following video lesson, I had already created a repositório, but only on the website, briefcase-free on my laptop.

Now, my github has two repositories and no project.

A call Linguagem-C, where at first I would just post my programs in C. And a call projetosfinaisfaculdade, where I would post all the college semester-end projects. Now, don’t even delete those I can.

I tried to follow several tutorials but I’m not getting.

Could someone tell me how to set up github in Ubuntu?

In my case, I wanted to delete these two that I have first and then configure only one master in the correct way and put all the projects inside one folder.

If anyone needs to see the repositories in my profile, it’s here: https://github.com/marciellioliveira

Thanks in advance. ;)

  • 1

    To delete a repository, go to its main page, go to the button Settings, at the bottom of the loaded page, there will be the option Delete this repository. It will ask you to enter the repository name to confirm the deletion.

  • 1

    A good tutorial for git which I used to learn was this: http://www.vogella.com/tutorials/Git/article.html

  • @By following these steps I was able to delete both. This link you gave me seems very complete, I will start reading now. Thank you. ;)

1 answer

4


Following the following steps, it’s easy to create and commit files in a remote repository.

Creating the project folder, enter it from the command line, type git init git recognizes its folder as a repository.

After creating the remote repository by github for example, add the path with the command git remote add origin [email protected]:marciellioliveira/Linguagem-C.git

Then leave the files ready to be commited with git add with the git add command it is possible to add all files created at once using a dot git add . or simply one file at a time with git add arquivo.extensão

Then you can commit the files with git commit -m 'A mensagem referente ao commit' now your files are already in the local repository, when you want to send to the remote repository, with the command git push -u origin master

Remember that the origin is the name of the alias you gave when adding the remote repository, and master means the master branch in your repository.

For more detailed information, there is Git Book Pro already translated into Portuguese, is free, only consult.

https://git-scm.com/book/pt-br/v1/

An observation, if using ssh, see Chapter 4 to create and add to the repository, github itself contains a guide to assist.

https://git-scm.com/book/pt-br/v1/Git-no-Servidor

https://help.github.com/articles/generating-ssh-keys/

Browser other questions tagged

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