Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo

Introduction

 
In my previous article, we discussed Teams in GitHub and the steps to create Teams in GitHub. Also, we discussed steps to group organization members into Teams with permissions with mentions and to manage repository permissions with mentions.
 
In this real-time series of articles, we discuss steps to push, pull and clone repository files to GitHub by Team members using Git Bash under organization. Here one member will add reviewers to review its pushed files by creating a pull request. In one scenario, the reviewer finds the issue or unwanted files and information to the user by adding comments on that particular pull request. After solving these issues by the user, the user again pushes the changes, creates a pull request for the latest changes, and then it will be merged to the main branch.
 
Today, I will describe the below-mentioned points in detail,
  1. Owner add files using git bash in the main branch in depth
  2. Clone the uploaded project of GitHub repo for testing purposes
Note
Before going through this session, please visit my below-mentioned sessions related to Git and GitHub,
  1. Introduction To Git
  2. Steps For Configuring Git With Details
  3. Let's Know About Git Add, Git Commit, Git Status, And Git Push-In Details
  4. Let's Understand How Git Maintains History Of Version Or Commit Ids With Details
  5. Steps To Initialize A Git Repository And Push The Changes To GitHub In Details
  6. Let's Know About Git Branches And How To Implement It
  7. Let's Understand About Git Branches And Its Real-Time Uses
  8. Let's Learn About Merging The Git Branches And Create Pull Request In Details
  9. Steps To Ignore Files Using Gitignore In Details
  10. Let's Learn About Git Default Branch In Detail
  11. Steps To Create And Configure Organizations In GitHub In Details
  12. Let's Learn About GitHub Projects In Detail
  13. Lets Know About Team In GitHub In Details

Owner add files using git bash in the main branch

 
Step 1
 
Here the owner InfoSatya will create a local directory and mention his User Email and User Name of GitHub account for author identity using Git Bash as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 2
 
Here the owner will clone the GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 3
 
Here we check the file details after clone the GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 4
 
Here we change directory to GitHub repo folder in local as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 5
 
We check the default branch associated with the GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 6
 
Here we check the actual .NET Health care project path using visual studio as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 7
 
The same copy we need to move to our GitHub repo folder as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 8
 
Now we check the status of Git with updated files and folders as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 9
 
Here we add the new changes to the staging part of our repo using Git Bash as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 10
 
Then commit those changes to Git as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 11
 
Then check the status after successful commit as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 12
 
Then push those changes to our GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 13
 
Now we check our GitHub repo after logging into Owner account to check project details after successful push as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 14
 
Here we create a new directory to clone the project in the GitHub repo.
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 15
 
Check the project details after successfully cloning the repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 16
 
Then open solution (.sln) using visual studio as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 17
 
Then run the project to check the output as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 18
 
Let's check the programming languages in the .NET Health care project that uploaded to GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 19
 
Check the uploaded project status; i.e., number of commits, time duration, name of the user who uploaded, and the commit messages in GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 20
 
Here we check the project commit details as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 21
 
Here we check the latest files commit details by the owner as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 22
 
We check the maximum percentage of programming language present in GitHub repo i.e. HTML as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 
Step 23
 
Here we check the uploaded .NET project files details in GitHub repo as shown below,
 
Managing Files On GitHub Using Git Bash 📥📤 In Real-Time Scenario - Owner Uploads Project In GitHub Repo
 

Summary

 
In this write-up, we have learned the below details,
  • Owner add files using git bash in the main branch in depth
  • Clone the uploaded project of GitHub repo for testing purposes
Thank You & Stay Tuned For More