Git

Git How to Change Remote Origin (with Examples)

To change your Git remote URL, use the git remote set-url command by specifying: Here’s what the command looks like: Typically running the above command looks like this: Example Let’s change the remote URL of an actual GitHub repo to demonstrate how the process works. I have a (private) Github repo at https://github.com/artturijalli/exampleProject.git which I’ve

Git How to Change Remote Origin (with Examples) Read More »

Difference Between ‘git add . ‘ and ‘git add -A’ (with Examples)

Have you ever wondered what’s the difference between the commands git add . and git add -A? The detailed answer depends on the Git version you’re using. In Git 2.x (which you are likely using): Let’s take a look at the differences between different options of the git add command. Besides, you’ll find a concrete

Difference Between ‘git add . ‘ and ‘git add -A’ (with Examples) Read More »