Git Commands git clone, delete branch and delete repository
How to clone using git
Using git clone you can make a copy of repo or clone it in a new directory in your local system. Using git clone you can located the original repository on the local system
git clone <URL>
git clone https://github.com/blogshub4/How-to-login-in-Laravel-using-Facebook-account.git
How to cut or create new branch
git branch -b branchname
How to delete a Git branch locally and remotely
Locally
git branch -d <branch_name>
git branch -d branchname
Remotely
git push origin --delete <branch_name>
git push origin --delete branchname
How to delete a Git repository locally and remotely
Locally
remove .git folder or run rm .git command
Remotelly
- First login in git hub
- Select the repository which you want to delete
![](https://blogshub.co.in/wp-content/uploads/2022/09/image.png)
3 Select “Setting” tab on top
![](https://blogshub.co.in/wp-content/uploads/2022/09/image-1.png)
4 Go down and select “Delete this repository”
![](https://blogshub.co.in/wp-content/uploads/2022/09/image-2.png)
5. Enter confirmation text in textbox and click on below button
![](https://blogshub.co.in/wp-content/uploads/2022/09/image-3.png)
6 Done, got success message
![](https://blogshub.co.in/wp-content/uploads/2022/09/image-4.png)