Skip to content
View suvrajeet01's full-sized avatar
๐Ÿ 
Working from home
๐Ÿ 
Working from home

Block or report suvrajeet01

Report abuse

Contact GitHub support about this userโ€™s behavior. Learn more about reporting abuse.

Report abuse
suvrajeet01/README.md
  • ๐Ÿ‘‹ Hi, Iโ€™m Suvrajeet
  • ๐Ÿ‘€ Iโ€™m interested in Blockchain
  • ๐ŸŒฑ Iโ€™m currently learning Blockchain
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on Blockchain Projects
  • ๐Ÿ“ซ Reach me @twitter - suvrajeetb

visitors


Git Essentials


  • Command Line Instructions

  • Gitpod can also be used as an alternate way instead of using local machine to work on files and hence finally upload them to a VCS service provider.
  • Step A may not be required in this case
  • Commands to upload files from local repository to remote repository from VCS services provides like ' Github, Gitlab, etc ' : -


A. Git Global Setup

 git config --global user.name "github/gitlab-username" git config --global user.email "github/gitlab-registered-email-address" 

B.1 Create a new repository

 git clone https://www.github.com/username/repository-name.git **_OR_** https://www.gitlab.com/username/repo-name.git cd repository-name touch new-file-name git add . **_OR_** git add file-name git commit -m "commit-message" git status 
  • To check the status of your files
 git push -u origin master 
  • "-u origin master" is optional & is not required at most of the time .

B.2. Create a new repository on the command line

 git init git remote add origin https://github.com/username/repo-name.git echo "# echo-text" >> README.md git add README.md git commit -m "commit message" git branch -M trunk git push -u origin trunk 

B.3. Push a Local repo WHILE local repo != existing remote repo

 git init git remote add origin https://github.com/username/repo-name.git git add . git commit -m "commit-message" git branch -M trunk git pull https://github.com/username/repo-name.git --allow-unrelated-histories git push -u origin trunk 

B.4. Push an existing repository from the command line

 git init git remote add origin https://github.com/username/repo-name.git git branch -M trunk git push -u origin trunk 

Pinned Loading

  1. lw3.io_whitelist-dapp lw3.io_whitelist-dapp Public

    whitelist dapp for nft collection

    JavaScript

  2. lw3.io_nft-collection lw3.io_nft-collection Public

    built nft collection web app

    JavaScript

  3. lw3.io_ico lw3.io_ico Public

    launched initial coin offering

    JavaScript

  4. lw3.io_dao lw3.io_dao Public

    built fully on-chain DAO to invest in NFTs

    JavaScript

  5. lw3.io_dex lw3.io_dex Public

    basic dex [ Decentralized EXchange ] WebApp similar to Uniswap

    JavaScript