You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a project already stored locally enables you to move it to GitHub rather quickly. The following activity provides instructions to move your local project to GitHub using various tools. Select the tool you are most comfortable with and get importing 😄.
⌨️ Activity: Moving your local project
In the Code tab of this repository, copy the URL shown under Quick Setup.
Follow the instructions below based on what tool you'd like to use locally.
Using the command line
Using the command line
In your command line, navigate to your project directory. Type git init to initialize the directory as a Git repository.
Type git remote add origin https://github.com/Supriyamishra92/github-upload.git
Type git add .
Type git commit -m "initializing repository"
Type git push -u origin master to push the files you have locally to the remote on GitHub. (You may be asked to log in.)
Using GitHub Desktop
Using GitHub Desktop
In GitHub Desktop, add a local repository by clicking File > Add a Local Repository, and then navigating to your local repository.
Create your first commit by typing a summary commit message in the field provided and clicking Commit to master
Add the remote by clicking Repository > Repository Settings... and pasting the URL from your repository on GitHub into the "Primary remote repository (origin)" field. Click Save.
Click Publish in the top right corner to push your repository to GitHub.
Using Visual Studio Code
Using Visual Studio Code
In Visual Studio Code, open the folder for your project.
Click the icon on the left for Source Control.
On the top of the Source Control panel, click the Git icon.
If the files you see match the repository you want to create, click Initialize Repository.
Next to the word CHANGES, click the symbol of the plus sign to stage all of the changes.
This is part of the two stage commit. You can use this staging function to create meaningful commits throughout the development process.
In the box in the Source Control panel, type a commit message. Something like "initial commit - moving project" could work.
Click the checkmark at the top of the Source Control panel.
Open the integrated terminal found under View > Integrated Terminal.
In your command line, type git remote add origin https://github.com/Supriyamishra92/github-upload
In the Source Control Panel, click the expandable three dots that open a menu of options.
When asked if you'd like to publish the branch, click Okay.
Using Atom
Using Atom
In Atom, open the folder for your project
At the top of your screen, click Packages. Select GitHub, and then toggle the Git Tab from the drop-down menu.
Select Create Repository within the Git tab on the right-hand size of your screen.
Select Init to accept the default prompt of the pop up window
In the Git tab, you can see that your files are ready for staging. It should be accounted for, but double check to make sure that none of your binaries or files that you listed in the .gitignore are listed in this dialog menu.
- If they are, double check your .gitignore file to make sure they're included or remove them from your directory.
Select Stage All
- This is part of the two stage commit. You can use this staging function to create meaningful commits throughout the development process.
In the box at the bottom of the Git panel, type a commit message. Something like "initial commit - moving project" could work.
Select Commit
Close Atom
In your command line, navigate to your project directory.
Type git remote add origin https://github.com/Supriyamishra92/github-upload
Return to Atom, and select the Up/Down arrow icon at the bottom of your Git Tab
Step 3: Make the move
Having a project already stored locally enables you to move it to GitHub rather quickly. The following activity provides instructions to move your local project to GitHub using various tools. Select the tool you are most comfortable with and get importing 😄.
⌨️ Activity: Moving your local project
Using the command line
Using the command line
git init
to initialize the directory as a Git repository.git remote add origin https://github.com/Supriyamishra92/github-upload.git
git add .
git commit -m "initializing repository"
git push -u origin master
to push the files you have locally to the remote on GitHub. (You may be asked to log in.)Using GitHub Desktop
Using GitHub Desktop
File > Add a Local Repository
, and then navigating to your local repository.Repository > Repository Settings...
and pasting the URL from your repository on GitHub into the "Primary remote repository (origin)" field. Click Save.Using Visual Studio Code
Using Visual Studio Code
git remote add origin https://github.com/Supriyamishra92/github-upload
Using Atom
Using Atom
- If they are, double check your .gitignore file to make sure they're included or remove them from your directory.
- This is part of the two stage commit. You can use this staging function to create meaningful commits throughout the development process.
git remote add origin https://github.com/Supriyamishra92/github-upload
Using Eclipse
Using Eclipse
Watch below for my response
The text was updated successfully, but these errors were encountered: