Posts

Showing posts from February, 2022

Git Topics

Image
 Git Topics 01.Pushing a local project to a git hub repository. 02. Basic Git Command part 01

01.Pushing a local project to a git hub repository.

Image
  Push GitHub Pushing a local project to a git hub repository. -------------------------------------------------------------------------------- 01.git clone https://github.com/LahiruPriyankara/MicroService-Project-One.git 02.cd MicroService-Project-One 03.copy and pase project to that folder 04.git remote -v 05.git add . 06.git commit -m "First commit" 07.git push origin master URL for Tutorial https://www.youtube.com/watch?v=h1e8oC7g0Ps -------------------------------------------------------------------------------- 1rd .git /S/Q git clone repository_URL copy and pase project to that file git init git add . git commit -m "First commit" git remote add origin repository_URL # Sets the new remote git remote -v # Verifies the new remote URL git push origin master 

02. Basic Git Command part 01

Image
 Basic Git Command part 01 git->bitBucket | git->gitHub | git->gitLab Read for more info  https://git-scm.com/docs   CONFIG GIT Read for more info  https://adamtheautomator.com/git-bash/ Downloading and Installing Git (Bash) https://gitforwindows.org/ Run the git command below to verify Git Bash is installed and its current version (--version). git --version   1. Launch Git Bash console by clicking on the Start button, type git, and click on Git Bash. 2. Run the below git config command to add your name (YourName) as your git username (user.name). The git config command administers configuration variables that control how Git looks and operates. Pass the --global option to the git config command to define the configuration variable (YourName) in the ~/.gitconfig file specifically. git config --global user.name "YourName"   3. Now open the command prompt and run the below git config command to add your email ("TestEmail@mail.com") as your git user email (--g

Link Local git with GitHib

Image