Moving Your Project To Github
Moving Your Project To Github
3.1. Once you have the URL for your existing repository on Subversion, Mercurial,
TFS, or another Git server, navigate to the Code tab of this repository and
scroll down to the section labeled ...or import code from another repository
3.2. Click Import code
3.3. Type the URL for your repository in its old location
3.4. Click Begin import
3.5. In the Code tab of this repository, copy the URL shown under Quick Setup
3.6. Follow the instructions below based on what tool you’d like to use locally
3.7. In your command line, navigate to your project directory. Type git init to
initialize the directory as a Git repository
3.8. Type git remote add origin
https://github.com/YOUR-USERNAME/github-move.git
3.9. Type git add .
3.10. Type git commit -m “initializing repository”
3.11. 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)
3.12. In GitHub Desktop, add a local repository by clicking File > Add a local
Repository , and then navigating to your local repository
3.13. Create your first commit by typing a summary commit message in the field
provided and clicking Commit to master
3.14. 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
3.15. Click Publish in the top right corner to push your repository to GitHub
3.16. In Visual Studio Code, open the folder for your project
3.17. Click the icon on the left for Source Control
3.18. On the top of the Source Control panel, click the Git icon
3.19. If the files you see match the repository you want to create, click Initialize
Repository
3.20. Next to the word CHANGES, click the symbol of the plus sign to stage all of
the changes
3.21. In the box in the Source Control panel, type a commit message. Something
like “Initial commit - moving project” could work
3.22. Click the checkmark at the top of the Source Control panel
3.23. Open the integrated terminal found under View > Integrated Terminal
3.24. In your command line, type git remote add origin
https://github.com/YOUR-USERNAME/github-move.git
3.25. In the Source Control panel, click the expandable three dots that open a menu
of options
3.26. When asked if you’d like to publish the branch, click Okay
- Using Atom
- Using Eclipse
3.41. In Eclipse, from the Eclipse Marketplace, install the eGit GitHub plugin
3.42. Open you existing project
3.43. Display the Git Repositories window by selecting Window > Show View >
Other > Git > Git Repositories
3.44. Click the Create a Git Repository button on the Git Repositories pane
3.45. Make changes to your project and create a commit
3.46. Push the master branch
3.47. When asked for a remote, paste the URL you copied earlier
3.48. Click next, and enter the branch name
4. Prepare to collaborate
Navigate to the below issues created in your project and tracked with a milestone
5. Project settings
Inviting Collaborators
5.1. Ask for the username of the person you’re inviting as a collaborator. If they
don’t have a username yet, they can sign up for GitHub
5.2. Click on the Settings tab for this repository
5.3. In the left sidebar, click Collaborators & Teams
5.4. Under “Collaborators”, start typing the collaborator’s username
5.5. Select the collaborator’s username from the drop-down menu
5.6. Click Add collaborator
5.7. The user will receive an email inviting them to the repository. Once they accept
your invitation, they will have collaborator access to your repository
Enabling GitHub Pages for Documentation
Creating a release