banner



How To Upload Projects To Github

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

Brand sure to install Git and GitHub.

Afterward installation is complete, open "git bash";

enter image description here

so a window like below is gonna popular up:

enter image description here

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

You tin cheque the address that yous are in it by typing pwd;

Now y'all need to create a GitHub account;

Subsequently creating a GitHub account, become ahead and sign in;

Afterwards you signed in, on the tiptop correct click on the + and choose "New Repository"

enter image description here

Then in the opened window, type the proper noun that you wish to have for the repository in the "Repository name" box. Add "Description (optional)" if you 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 name it "git" Now become to the "git bash" window; modify the directory to c drive past typing cd ~; cd /c If yous type ls in that location information technology would show you the folders there; Brand sure it shows the git folder there:

enter image description here

At present get dorsum to the browser; go to your GitHub folio, click on the repository that yous made; and click on "Clone or download"; and copy the accost that shows there (by choosing copy to clipboard)

enter image description here

Now going back to "git bash"; Use the command cd git to go to the git folder; now write the following 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 and so: git config --global user.email youremail@domain.com . Side by side blazon: git clone (url), instead of the (url), blazon 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 y'all will see your repository at that place; If you likewise open the git binder that you accept in your window yous volition see that your repository is added equally a binder.

Now employ the cd command to go to the repository: cd Test

Go alee and copy and paste any files that you want to put in this repository in that binder.

In order to transfer the files to your repository you need to do following now:

Blazon git

add filename (filename is the file proper name that you want to upload) or yous can type the command below if y'all desire to add together all the files in the folder:

git add together .

Then type: git commit -yard "calculation files" . And then: git button -u origin main .

And then you should be all set, if y'all refresh your GitHub business relationship the files should be in that location :)

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

Posted by: simmsballend1984.blogspot.com

0 Response to "How To Upload Projects To Github"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel