Ubuntu Git Application-How to Install and Configure Git Repository via Ubuntu Command Line

0
128

Installation Git on Ubuntu Command Line:

Checking Your Settings

If you want to check your settings, you can use the git config –list command to list all the settings Git can find at that point:

Some Important Command for Git Repository:

EXAMPLES

Start a new Git repository for an existing code base

  • Open Terminal.
  • Go to your local current working project directory .
  • Initialize the local directory as a Git repository.
  • Add the files in your new local repository. This stages them for the first commit.
  • Commit the files that you’ve staged in your local repository.
  • Copy remote repository URL fieldAt the top of your GitHub repository’s Quick Setup page, click
  • to copy the remote repository URL.
  • In Terminal, add the URL for the remote repository where your local repository will be pushed.
  • Push the changes in your local repository to GitHub.