Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd //change directory
- cd /f //change directory to F drive
- ls //shows all the files and directories of current folder
- cd programming/ //change folder
- git config --global user.name "waliul34" //config git
- git config --global user.email 00waliul00@gmail.com //config git
- git clone https://github.com/Waliul34/OurShyampur.git //downloads the files from the repository into PC
- /* start:single file upload process */
- git add test.txt
- git status
- git commit -m "first commit" test.txt //this will upload test.txt from local git to github after push
- git push -u origin master
- /* end:single file upload process */
- /* start:uploading latest version of file */
- (use up button to access previous commands)
- git status //it will show that test.txt file is modified
- git commit -m "second commit" test.txt
- git push -u origin master
- /* end:uploading latest version of file */
- /* start:upload the whole folder */
- (right click inside the folder and click Git Bash Here)
- git init //initialization of git
- git status
- git add . //adds all the files in git
- git status
- git commit -m "first commit" .
- git branch -M master
- git remote add origin https://github.com/Waliul34/OurShyampur.git
- git push -u origin master //if shows any error : git push -f origin master
- /* end:upload the whole folder */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement