Git

Git

5
2
0

How to change the URI for a remote Git repository?

Asked by Sumit Talwar ·
I have migrated the remote repository to another host, So, I need to change the remote’s URL. So, please guide how to change the URL of a Git remote?
0
2
1412

Git Cheat Sheet - Commands

git init <directory>:  Create empty Git repo in the specified directory. Run with no arguments to initialize the current directory as a git repository.
Deepak Kumar
Git Cheat Sheet - Commands
1
0
2338

How to make Git “forget” a file that was tracked now it is in .gitignore?

Asked by Sohail ·
In my git repository, there is a file that was being tracked by git. However, now the file is on the .gitignore list. That file keeps appearing in git status after that file is (...)
0
3
1304

How to rename a local Git branch?

Asked by Sohail ·
How can I rename a local branch which hasn't been pushed to a remote branch?
0
1
417

Create Git aliases, And Git Commands You May Not Know

One of my favorite feature in Git is aliases. Git supports aliases, which implies you can provide your commands any name you need. I like to set aliases for long commands to avoid (...)
Harish Kumar
Create Git aliases, And Git Commands You May Not Know
0
0
402

How to delete a Git branch locally and remotely?

Asked by vinoy ·
I want to delete the git branch locally and remotely, but I don't know how? Here are my failed attempts: Attempt 1: git branch -d remotes/origin/bugfix Output: error: branch (...)
0
2
439

What's the difference between the git fetch and git pull commands?

Asked by pehow ·
description I have seen some users use git fetch, and some use git pull. But I did not understand the difference between both. Please explain when to use git fetch and git pull? (...)
0
2
403