How to change port in GIT

When you clone repository from git using SSH you may get following error message

ssh: connect to host port 22: Bad file number 
ssh: connect to host (some host or IP address) port 22: Bad file number

Solution :

Step 1: open gitbash
Step 2: > touch ~/.ssh/config
Step 3: > Paste following code in config file

   User git
   PreferredAuthentications publickey
   IdentityFile ~/.ssh/id_rsa
   Port 443

How to get all changed file – modified file as compressed Zip file in GIT

You made some changes in folk or repository. Need to send as mail or compress these changes as backup.

Step 1 : Go to git bash

Step 2 : git ls-files --modified – To list all changed files.

Step 3: zip $(git ls-files --modified)

Step 4: Check your local repository. You can able to see