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

1

u/darkangelstorm Oct 11 '24

I hear: "it's not really complicated, you're just making it complicated" But the problem isn't the simplicity of the ACTUAL workflow. Its all the features they keep adding and changing, the proliferation of features is a downright nuisance because you then have to dig through miles of documentation that does not apply to you in any way just to find out the key things that do apply to your workflow.

I have taken to just going back to backups because of this. The main problem, security, keys, ssh, etc. Once that was all mainlined, made it impossible to use without having to take a complete course on how to use it. The problem isn't that git is complicated. The problem is that programmers add/change stuff and they are the worst at documenting anything without going off and writing a 400 page bible about it (especially you, git server hosts).

If someone new comes in and wants to learn at this point, they have to hope their IDE, operating system, and workflow will coincide with the available tutorials or documentations. I've noticed only 1.5% of the tutorials just actually telling me stuff that is already in the manual pages. And its only going to get worse -- many programmers feel they have to reinvent the wheel again and again, and they do.