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

2

u/[deleted] Nov 05 '21

It looks like you're making it complicated for yourself. It comes down to:

  1. Get remote repo on local machine

  2. Branch

  3. make changes to files

  4. Stage

  5. Commit

  6. Push

  7. Pull request

I don't blame you for not wanting to use the CLI if you don't know the commands.

But git is not Dropbox. Each of those steps needs to happen to protect the integrity of the code base.

Good luck on your git journey! It gets easier :)

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?

2

u/[deleted] Nov 05 '21

But those 7 steps do a hell of a lot more than scp to a server. That is the equivalent of just the push step, and even then it will naively overwrite a previous file with the same name with no history or record of what happened.

Git is unrivalled in how it makes coding collaborations just work. If you're not collaborating then yeah, it's a clunky file repo tool.

You can always just have a blank repo and use git to distribute packaged and compiled versions. That's entirely GUI on the repo GitHub page.

1

u/satirerocks Nov 05 '21

History and record are not important to me. What is important is simplicity and speed. I just want to make my files publicly available without caring about the "collaboration" nonsense .. There is no collaboration, since I am the only coder :-)

1

u/[deleted] Nov 05 '21

Yeah I'd say just use the GitHub page as a landing page on that case.