Simple view of add file into git repository

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

How to add File in Git repositery or import project into Git ?

  • Install Git, use git-bash and goto git directory into git-bash by:
    • $ cd c:/git
  • Now open ‘Git-hub’ in browser or software and just create a ‘new’ repository by clicking create repository with new repository name. you can add readme file. This ‘repository folder’ is to be showing on git directory.
    • github/login
  • Now open git-base and enter the two commands one by on:
$ git config --global user.name "your-name"
$ git config --global user.email "your-mail"Code language: PHP (php)
  • Now copy the path of “url” of repository from github and paste with command:
$ git clone your_urlCode language: PHP (php)
  • Now the repo clone file copied in your git directory, you can see by ls command:
$ ls
  • Now the repo clone file copied in your git directory, you can see by ls command:
$ git add your_file
  • And check it status by:
$ git status
  • When you want to commit file in your git, you just enter the command:
$ git commit -m "commit" your_fileCode language: JavaScript (javascript)
  • At the end, complete object set up by the command:
$ git push -u origin main

Finally, we commit the files into your repository, this is basic view of git repository.