How to add your project in Git Hub.
Adding your project in Git Hub plays an important role in your future/ career. Its a platform which makes your project online and let people know about it.
When you apply for an internship in Internshala or apply in any other company, generally they ask "How many projects you have worked in ". And this platform helps you to show your work.
Steps to upload your project in Git Hub:
1. Download git bash
This allows users to type Git commands on the terminal. Git Bash is not a GUI software, it is a command-line prompt. You will only use Git Bash to write and run commands on the terminal.
You can download Git Bash from here https://git-scm.com/downloads
2. The simplest way to open the terminal in the working directory.
>> Go to the folder where you have saved your project file (That folder may contain other files related to your project.)
>>Then right-click and there will come a new option Git Bash Here.
Your terminal will open
Now first tell him about yourself like your email and your name.
Here are commands :
- Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
- Set your email address: git config --global user.email "MY_NAME@example.com"
**** BOTH SHOULD BE ACCORDING TO YOUR GIT HUB PROFILE****
3. Git bash terminal will open
Commands :
🟍TYPE: git init
# It will initialize the project
🟍TYPE: git status
# it will show the status of the file
🟍TYPE: git add --a
# All files will go to the staging area
🟍TYPE: git commit -m "Type your message"
# commits all the files or those are selected
Now it's ready to push your project in Git Hub.
These four commands will create your repository.
You can check your progress by typing git status command.
NOW the final steps:
Copy these two commands into Git bash and finally, your project is on Git Hub.
If you want to make any changes then try these COMMANDS :
🟍TYPE: rm -rf .git
# used to delete your created git repository here (.git folder).
🟍TYPE: git clone here paste the URL of the repository
# used to download that project on your system something like that
إرسال تعليق