Hands-on Git tutorial (--github) How to delete a repository (warehouse)

Source: Internet
Author: User
Tags commit git clone git commands

If the small partners follow my tutorial step-by-step, they must have learned to use git, but there is also a byproduct, which is the repository we created on GitHub in our learning process. This warehouse in the future use is redundant, we need a clean github, there is only the warehouse we need, what should we do?

Explain the last section today: GitHub How to delete a repository (warehouse)

How to delete a project I created, I browsed the GitHub site, it's really not easy to find the delete feature. Here's how to delete a repository on GitHub
A: First click into the repository you want to delete, as shown below, click Setting


Two: Pull the page below, find the Delete this repository button, click.


Three: Enter the name of your repository in the popup dialog box


Four, then click on the button below


OK, so that a project is completely deleted.

As for the local Git code needs to be deleted as normal files, in fact, git all the information in the. git folder, if you want to keep the code, and do not want to associate with git, you need to delete the. git folder.

In the end, summarize the GIT commands we used and used.

The basic common commands for Git are:mkdir: XX (Create an empty directory XX refers to the directory name)
pwd: Displays the path to the current directory.
git init: Turn the current directory into a manageable git repository and generate a hidden. git file.
git add XX: Add xx file to Staging area.
git commit-m "XX": The comment is followed by the commit file –m.
git status: View Warehouse Status
git diff XX: View xx files Modify those content
git log: View historical records
git reset--hard head^: ORgit reset--hard head~Fallback to previous version
(If you want to fallback to 100 versions, usegit reset--hard head~100)
Cat XX: View xx file contents
git reflog: View the version number ID of the history record
git checkout--XX: Undo all changes to the xx file in the workspace.
git rm XX: Delete xx file
git remote add Origin https://github.com/RTplay/testgit.git: Associating a remote library
git push-u (not required for the first time with-U) Origin Master: Pushes the current master branch to the remote library
git clone https://github.com/RTplay/testgit.git: Cloning from the remote library
git checkout-b Dev: Create Dev Branch and switch to Dev branch
git branch: View all current branches
git checkout Master: Switch back to master branch
git merge dev: Merges the Dev branch on the current branch
git branch-d Dev: Delete Dev Branch
git branch name: Creating a Branch
git stash: Hide the current work and resume work after resuming the site.
git stash list: View a list of all hidden files
git stash Apply: Recovers hidden files, but content is not deleted
git stash Drop: Deleting files
git stash pop: Files are deleted while restoring files
git remote: View information for remote libraries
git remote-v: View details of remote libraries
git push Origin master: Git pushes the master branch to the remote branch corresponding to the remote library


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.