2016年12月14日星期三

Add an existing project to GitHub



1. Create an empty repository in GitHub

  • login your GitHub account, click the 'plus' sign on the upper right corner to create a new repository;
  • give a repository name; choose public or private; do not check the checkbox in front of 'Initialize this repository with a READEME'; then click 'Create repository' button;
  • copy the repository address: click the copy icon on the Quick setup page
2. Push the existing repository from the command line
  • open a command window in your system
  • in the command window, input:
    • git remote add origin https://github/lafeike/test.git
    • git push -u origin master 
3. Delete a repository in GitHub
  • Click to your repository 
  • Then in the main toolbar of github click on Settings
  • Scroll just a little bit down and you will find Delete this repository button
  • When you click it another pop up will appear here you need to type in the name of your repository and click on the button below which says: I understand the consequences, delete the repository

没有评论: