banner



How To Upload Scratch Projects To Github

Here I explain how I did information technology on Window, peradventure information technology likewise helps others :)

Make certain to install Git and GitHub.

Later on installation is complete, open "git bash";

enter image description here

then a window like below is gonna pop upwards:

enter image description here

Go ahead and type cd ~ to make sure you are on home directory;

You can check the address that you are in it past typing pwd;

Now you lot need to create a GitHub account;

After creating a GitHub business relationship, get ahead and sign in;

After you signed in, on the top correct click on the + and choose "New Repository"

enter image description here

Then in the opened window, type the name that you lot wish to have for the repository in the "Repository proper name" box. Add "Description (optional)" if y'all like, and mark "Initialize this repository with a README". Then click on "Create repository".

enter image description here

Now go to your C driver; create a new folder and proper name it "git" Now go to the "git bash" window; change the directory to c drive by typing cd ~; cd /c If y'all type ls at that place it would show you lot the folders there; Brand certain it shows the git folder there:

enter image description here

Now go back to the browser; become to your GitHub folio, click on the repository that you lot made; and click on "Clone or download"; and copy the address that shows in that location (by choosing copy to clipboard)

enter image description here

At present going back to "git bash"; Use the command cd git to get to the git folder; at present write the post-obit commands to connect to your GitHub (enter the username and password of your GitHub when it asks you)

          git config --global user.name "Your Name"                  

And then: git config --global user.e-mail youremail@domain.com . Side by side type: git clone (url), instead of the (url), type the address of the GitHub repository that you copied from your GitHub page; (e.g. git clone https://github.com/isalirezag/Test.git).

At present if you do ls command yous will encounter your repository in that location; If you likewise open the git folder that you have in your window you lot volition meet that your repository is added every bit a folder.

Now utilise the cd control to go to the repository: cd Test

Get ahead and copy and paste any files that you want to put in this repository in that folder.

In social club to transfer the files to your repository y'all need to exercise post-obit now:

Blazon git

add filename (filename is the file proper name that you want to upload) or you lot can type the command below if you want to add together all the files in the binder:

git add .

Then blazon: git commit -m "adding files" . So: git push -u origin master .

And and so you should be all set, if you refresh your GitHub business relationship the files should exist at that place :)

Source: https://stackoverflow.com/questions/12799719/how-to-upload-a-project-to-github

Posted by: riversalren1997.blogspot.com

0 Response to "How To Upload Scratch Projects To Github"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel