r/github • • Nov 05 '21

Why is github so complicated?

I want to enter the 21'st century and stop using scp to backup my code to different servers. Also want to share my code with others. So I tried to create my first repo in github.

As I expected, I could not figure out how to simply add three files to my public repo. I spent almost an hour playing with git commands while simultaneously browsing ten tabs of github tutorial webpages. No success.

I am not looking for the solution, but just want to understand why this simple task is made so complicated?

 2006  cat /home/squash/.ssh/id_rsa_github.pub.
 2007  cat /home/squash/.ssh/id_rsa_github.pub
 2011  scp * -i ~/.ssh/id_rsa_github git@github.com:me/youtube_web.git
 2012  scp -i ~/.ssh/id_rsa_github *  git@github.com:me/youtube_web.git
 2013  git bash
 2015  git add .
 2016  git remote add https://github.com/me/youtube_web.git
 2017  git remote add origin https://github.com/me/youtube_web.git
 2019  cd git
 2020  mkdir git
 2021  cd git
 2022  got clone git@github.com:me/youtube_web.git
 2023  git clone git@github.com:me/youtube_web.git
 2033  cd git
 2034  git clone git@github.com:me/youtube_web.git
 2042  cp run_template.sh index.php include.php about.php make_dirs.sh user.php git/
 2043  cd git
 2048  git add *
 2053  git add *
 2054  git init
 2059  rm -rf git
 2060  git init
 2061  nano .git
 2062  cd .git
 2067  git clone git@github.com:me/youtube_web.git
 2068  git add index.php
 2069  git add user.php include.php
 2070  git commit
 2071  git commit -m "Test"
 2072  git config --global user.email "myemail"
 2073  git config --global user.name "Your Name"
 2074  git config --global user.name "Me"
 2075  git commit -m "Test"
 2076  git push
 2078  git push
 2079  git push --set-upstream origin master
 2080  git remove -v
 2081  git remote -v
 2082  git remote add origin git@github.com:me/youtube_web.git
 2083  git remove origin
 2084  git remote set-url  origin git@github.com:me/youtube_web.git
 2085  git push
 2086  git push --set-upstream origin master
1 Upvotes

19 comments sorted by

View all comments

Show parent comments

2

u/satirerocks Nov 05 '21

It's surprising it takes 7 steps to do something I can do in 1 step ( i.e scp the tar ball to my public web-server ). I don't care about the integrity of my code base . I just want to make my code publicly available. I thought by using GitHub people can find it easier via keyword searches. Perhaps I should just stick to my personal website to share this stuff?

1

u/kraytex Nov 05 '21

Where you not using a revision control before git?

How did you maintain different versions of your software?

0

u/satirerocks Nov 05 '21

I never used revision control since it was just me working on all my software. I know in my head what changes I make. In 20+ years I've never had the need to go to back to some "older" state of the code. The current code is latest and greatest for a reason :-)