Go to the directory where your file is located.
$ cd file_location
$ git add -f file_name
Then you have to commit your added file
$ git commit -m “Adding a new file”
Then push your commit
$ git push
Go to the directory where your file is located.
$ cd file_location
$ git add -f file_name
Then you have to commit your added file
$ git commit -m “Adding a new file”
Then push your commit
$ git push
To install Git using apt-get, simply execute the following commands:
$ sudo apt-get update
$ sudo apt-get install git