Search This Blog

Thursday, September 19, 2024

How to add git remote origin to your local app


Follow the steps below add git remote origin to your local app :

  1. Use git init to create a new local repository.
  2. Add files and perform a git commit.
  3. Obtain the Git URL of the remote repo.
  4. Issue the git remote add origin command.
  5. Use the git push command to upload your files.

Commands are:

git init

git add --all

git commit -m "test_msg" 

copy remote URL from Git 


git remote add origin https://github.com/<user>/learnCAP.git

git push -u origin master


What if the remote repo isn't empty?

If it shows the error of conflicts or asks to pull if the remote is not empty and you don't want to pull as it is a fresh repo then you can force this via the force option below:

git push -u -f origin master


Hope it will help !! 


Cheers

Kapil 





Tuesday, May 21, 2024

How to install pip on MAC

 A simple way to install pip on MAC is as below:

Step 1: Run curl as below to download pip:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Step 2: Then run the following command to install 

python3 get-pip.py

Step 3: Check installation 

pip -version 

or 

pip3 -version 

either one should print the version installed :)

Cheers,

Kapil

Monday, May 15, 2023

How to change default browser on MAC !!

Hi Everyone,

Recently, I have had to change the default browser setting from Safari to Chrome or Mozilla. 

An easy way to do this with the following steps:

How to set or change the default browser on MAC:

Step 1. Click on the Apple icon on the left. 

Step 2. Go to System Settings. 




Step 3. Go to the Desktop and Deck option.

Step 4. Go to the Default browser and change the browser. 



That's it, I Hope you can change the default browser now on MAC. 

Cheers !! 

Popular Posts