Skip to content

Instantly share code, notes, and snippets.

@GitVishwa
Last active June 28, 2017 17:39
Show Gist options
  • Save GitVishwa/f0ec9a4ff4c56e2eb38300ea6a55ef39 to your computer and use it in GitHub Desktop.
Save GitVishwa/f0ec9a4ff4c56e2eb38300ea6a55ef39 to your computer and use it in GitHub Desktop.
Push files to a specific repository through linux terminal
# Be in the directory(Repository in Github) where files/directories needs to be pushed.Then enter the command
$git add .
#Get the status of the files/directories needs to be pushed.
$git status
#Now commit the changes into the repository.
$git commit -m "Message"
#To Push the changes, enter the following command and enter the credentials.
$git push origin master -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment