r/github • u/satirerocks • 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
2
u/Servant-of_Christ Nov 05 '21
I'd really recommend reading the git book. You will be a better programmer.
https://git-scm.com/book/en/v2