Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GIT: STEPS TO CREATE, INTIATE AND UPLOAD A REPO
- DATE: 02/09/2016 02:48:41
- GIT TO USE: /usr/bin/git (version 1.7.10.4) #INSTALL VIA TERMINAL, NOT THRU GITHUB
- confirm by running this line in a terminal
- $ which git
- git is /usr/local/bin/git
- git is /usr/bin/git #THIS WORKS PERFECTLY FOR ME, INCLUDING CLONING WITH HTTPS
- git is /opt/lampp/git/bin/git
- STEP 1: GOT TO YOUR LOCAL GIT DIRECTORY
- $ gogit
- or
- $ cd ~/git-repos
- STEP 2: CREATE A NEW DIR OR COPY DIR TO GITHOME
- $ cp ~/Downloads/skype-4.3.0.37 ~/git-repos/skype
- STEP 3: CREATE A NEW REPO HERE
- $ echo "# skype" >> README.md
- $ /usr/bin/git init
- $ /usr/bin/git add README.md
- STEP 4: CREATE REPO ONLINE
- Visit your online GitHub Account eg https://github.com/thioshp/
- Create a new repo there (use button titled "Create new repo"
- STEP 5: CHECK GIT STATUS
- $ /usr/bin/git status
- STEP 6: COMMIT THIS REPO
- Use -m to pass a mesage to git ESPECIALLY IF YOU GET "NO EDITOR vi ERROR MESSAGE"
- $ /usr/bin/git commit -m "first commit"
- STEP 7: TELL GIT WHERE TO FIND YOUR ONLINE REPO (where your repo will reside)
- $ /usr/bin/git remote add origin https://github.com/thioshp/skype.git
- STEP 8: UPLOAD YOUR REPO
- $ /usr/bin/git push -u origin master
- #GIT FEEDBACK
- Username for 'https://github.com': ******
- Password for 'https://your-account@github.com':
- Counting objects: 148, done.
- Delta compression using up to 2 threads.
- Compressing objects: 100% (147/147), done.
- Writing objects: 100% (148/148), 19.11 MiB | 60 KiB/s, done.
- Total 148 (delta 27), reused 0 (delta 0)
- To https://github.com/thioshp/skype.git
- * [new branch] master -> master
- Branch master set up to track remote branch master from origin.
- MORE THINGS THAT YOU CAN DO:
- A. Push an existing repository from the command line
- /usr/bin/git remote add origin https://github.com/thioshp/skype.git
- /usr/bin/git push -u origin master
- B. Import code from another repository
- Do this via a browser logged in to your repository
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement