|Register On Nairaland / LOGIN! / Trending / Recent / New|
Stats: 2,994,227 members, 7,296,389 topics. Date: Wednesday, 08 February 2023 at 09:17 PM
|Github Issues by syluck(m): 1:51pm On May 03, 2021|
I'm so fed up trying to link my local projects to my GitHub account.
I have downloaded and made the necessary commands, read several tutorials on the internet and even watched a video.
It keeps getting me more confused.
I just need a clear understanding of how GitHub works, easy and precise procedures in cloning my local projects to my GitHub repository(screenshots will help)
Already my projects are intact (more of Django)
But to link it......I just can't...
|Re: Github Issues by pidginedtec(m): 2:15pm On May 03, 2021|
Watch this video:
|Re: Github Issues by Karleb(m): 4:02pm On May 03, 2021|
Go through this video gently. It taught me git.
2 Likes 1 Share
|Re: Github Issues by syluck(m): 1:31am On Feb 16, 2022|
Funny enough I can commit my local project to GitHub now even with my eyes fully closed.
Life of a programmer. There are stages you know absolutely nothing and there are stages you are like, I can do this...
|Re: Github Issues by qtguru(m): 3:08pm On Feb 16, 2022|
Lol that's always how it is. nice one
|Re: Github Issues by airsaylongcome: 3:46pm On Feb 16, 2022|
This life riri no balance. Got my github.com account in 2013 to learn Data Science. Long story short I "abandoned" that training because of people's mouth. They were like "Data Science?! What is that?!?"
Today the only git comand I'm comfortable with is. git clone
|Re: Github Issues by emmyN(m): 5:05pm On Feb 16, 2022|
I'm having this challenge presently. Downloaded Git bash, typed the necessary commands for repo cloning, but still confused how to use it. Even Github looks very lifeless to me, so I'm still sitting on the fence doing my projects locally until I can wrap my head around that graveyard site
|Re: Github Issues by Nobody: 7:47pm On Feb 16, 2022|
Download the free app
|Re: Github Issues by syluck(m): 8:34pm On Feb 16, 2022|
Lol, I've been here where you are...
Don't worry with time, you'll get used to it.
And it's very risky having your projects locally without committing it to your github repository.
The basic tutorial on how to go about it.
*Make sure you have a GitHub profile.
*Go to repository page on your github and click on it
*Click on the "new"
*Then enter the name you intend giving it. With the description (optional)
*Then scroll down to where you see "create repository" and click. (For now, ignore all other options given. You'll get to understand them someday)
*You'll be then redirected to the fourth picture below.
Leave it for now....
Go to your local project on your PC.
*cd into the project you want commit to your github repository. (cd is a command for Windows to be in a particular directory. I don't know for other OS)
Note: The asterisks is not needed when running on your PC. Ignore them.
*run the command * git init * (this initializes your local project to github.)
*Then you run * git status * (this will show you lists of files you're yet to add and commit, more like showing the status of your files yet to accepted by github)
*Then run * git add . *
*Then run * git commit -m "first commit" *
*Then * git branch -M main *
Go back to your github where you left it....
Copy this command
* git remote add origin https: //... *
(it's definitely visible, copy the whole line)
Then paste it on your PC local project.
*lastly, run *git push -u origin main *
You'll get a success message if done correctly. Make sure your network connection is working. It uses network connection to commit.
Most of the instructions are shown on the fourth picture. What isn't there is just * git add . * And it's very important.
About the README.md?. You can create that locally on your project just like you're creating a new file.
When you have successfully created a new repository. You will likely want to commit new changes to the same repository.
Just follow these three commands accordingly.
* git add . *
* git commit -m "second commit" *
* git push -u origin main *
That's all for now. You'll get used to it with time and understand other instructions, options and commands.
|Re: Github Issues by HappyPagan: 11:49pm On Feb 16, 2022|
|Re: Github Issues by Psychodavidovic(m): 12:29am On Feb 17, 2022|
What error are you getting?
|Re: Github Issues by emmyN(m): 3:00am On Feb 17, 2022|
This is a lot. Thank you so much. I hope I'm able to get the wrap of it and get comfortable using it soon. Will create time this weekend for that. I've been able to create a repository on GitHub and made two commits already. My issue is Git (bash), user interface just not what I was expecting it to be like. None of those fanciful gizmos and whatnot. That explains the graveyard feeling I was talking about.
You used the command line rather than Git for your example. I guess they run the same commands. Will check that out.
|Re: Github Issues by emmyN(m): 3:11am On Feb 17, 2022|
Not really an error. I'm just not yet comfortable with the environment. Github for instance, when I see people talk about it on here, it seems a great site buzzing with much activity, where you get to participate in projects not necessarily yours, contribute to open source, see what others are doing, and the likes of it. But each time I get on my GitHub profile it feels like I'm the only one there. I click on the explore tab and there is only a small amount of information shown. I want to connect with others, it asks me to specify their GitHub profile name to search them out. How do I do that when I'm new to the site and barely know anyone around? Maybe I just don't know how to use the site yet.
|Re: Github Issues by Psychodavidovic(m): 9:16pm On Feb 17, 2022|
In a similar boat with you as I'm also new to it.
|Re: Github Issues by niel63(m): 10:19pm On Feb 17, 2022|
Me I'm using my VSCode on a virtual computer.
I recently started coding on one of my RDP's and honestly it's been really fun. So even when I forget to commit, e no dey go anywhere. but I try to commit atleast once a day.
|Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health |
religion celebs tv-movies music-radio literature webmasters programming techmarket
Nairaland - Copyright © 2005 - 2023 Oluwaseun Osewa. All rights reserved. See How To Advertise. 135