Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of Common commands in github (1)

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

First, create a repository

Locally, open git bash, change to the local project directory, and execute the following command:

Echo "# test" > > README.md

Git init

Git addREADME.md

Git commit-m "first commit"

Git remote addorigin https://github.com/wanglanqing/test.git

Git push-u originmaster

2. Delete repository

Log in to the github site, go to the [repository] page, and click the name of the project you want to delete, such as test

Go to the project page and click the setting Tab signature on the upper right

After entering the setting page, click [delete this repository] at the bottom

After clicking Delete, on the pop-up page, enter and confirm the item to be deleted

Enter the password to confirm the deletion

Third, add new files in the project and synchronize them to repository

Git add. / dir1/dir2/filename

Git commit-m ""

Gitpush-u origin master

Fourth, after the file content is updated, how to synchronize it to the remote warehouse

Git status

Git commit-a

Gitpush-u origin master

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report