home page
Message Board
About us
Friendly Links
Search
one
Using idle mobile phones to build a local WEB environment+ngrok intranet penetration to achieve external network access
47521 Reading
two
Xiaomi 8 installs Google Play service suite
30452 Reading
three
The single player landlords' non networked green version is suitable for the elderly
23101 Reading
four
Chinese and English names of 224 countries in the world
20845 Reading
five
Emlog, wordpress, typecho articles, whether Baidu has included detection codes
16546 Reading
Default classification
Source code tutorial
Life essay
Code Notes
Sign in
Search
Tag Search
SSL
vps
CentOS
AppNode
Intranet penetration
Node.js
Hairpin
GitHub
python
Google Voice
Local environment
Linux panel
Google Play
MarkDown
Vue
yarn
Small shop
Applet
Remote Desktop
frp
www.9ywk.com
Accumulated writing
seventy-two
Articles
Accumulated receipt
sixty-four
Comments
home page
column
Default classification
Source code tutorial
Life essay
Code Notes
page
Message Board
About us
Friendly Links
Search to
two
Article and
Results for
2021-04-02
Local projects are uploaded to Github through Git
Download the Git installation default installation, and then open the Git bash first installation configuration in the menu bar # Configure the mailbox with the same account name
git config --global user.name “Your_github-Username”
git config --global user.email “Your_github-email”
#View user name mailbox
git config user.name
git config user.email
#You can also view user mailboxes directly
vim ~/.gitconfig
: q Quit creating SSH keys. Since the transmission between the local Git repository and the Github repository is encrypted through SSH, you need to set it to check whether there is a. ssh directory in the user directory of disk C. If there is a hidden (C: Users user name), check whether there is a private key id in. ssh_
Rsa and public key id_
The rsa.pub file can be skipped to the next step. If not, you can create ssh keygen - t rsa - C "your_github email" by using the following command, and directly press Github to set the SSH key, log in Github New SSH key, and randomly fill in the title, content, and title. For example, GitKey generated: id_
Rsa.pub creates an empty warehouse (for uploading)
https://github.com/new
Other commands git rm - r -- cached
Delete all files in the cache (note this. If there are spaces, you can cancel a file if you change the file name to.) The remote repository uploaded by Git is empty (the new repository does not have README. md) 1. cd to the directory to be uploaded (the local repository), such as the test folder,
Pwd can view the current location 2. Initialize the local repository git init A. git folder will be created under the current test directory, which means to turn this folder into a Git manageable repository. It is used by Git to track and manage version libraries. Local repositories 3. Associate the remote repository git remote add origin github repository HTTPS address 4. Add files to the cache git add//
All contents in the current directory
Git add user//Specify a file or folder
Git status//View the cache file
(Note that this "." has spaces, and "." means that all files under this test folder are submitted. You can also submit the specified file through the git add file name
Git branch - a//View branches
Git checkout xxx//Switch branches
Git push - u origin master remote warehouse is empty, so you need to add - u to this parameter. The remote warehouse in the master branch of the cached file push to github warehouse is not empty (old warehouses, including those with no content and records) 1. Clone the remote warehouse (download) git clone warehouse address 2. cd to the cloned warehouse; the cloned warehouse contains the. Git folder,
There is no need to initialize and associate remote warehouse addresses with git init. 3. Add files to the cache git add//
All contents in the current directory
Git add user//Specify a file or folder
Git status//View the cache file 4. Submission instructions git commit - m 'first commit' 5. Upload git push origin master to delete the warehouse file
▶
Delete git clone warehouse address locally and remotely
//Negligible
Git rm file//The local file will be deleted
Git rm - r folder//local will be deleted
git rm -rf . //
All local items will be deleted
Git commit - m 'Delete a file'
The git push origin master will also delete the corresponding local file. If you do not want to delete the local file but only delete the corresponding part in the cache, add -- cached
▶
Only delete remote warehouse git clone warehouse address
//Negligible
Git rm -- cached file//The local file will not be deleted
Git rm - r -- cached folder//Local will not be deleted
git rm -rf --cached . //
All local items will not be deleted
Git commit - m 'Delete a file'
git push origin master
April 2, 2021
726 Reading
0 Comments
0 likes
2020-09-16
Discovery Navigation Deployment Tutorial - GitHub Page
Recently, we found a good website navigation in GitHub, which is pure static, automatic deployment, and coexistence of beauty and simplicity. It is no longer the era of killing matt. More information can be found on GitHub. Here we record the detailed deployment process.
Nav.ka.mk - I built this
https://github.com/xjh22222228/nav
How to deploy?
It is recommended that you use the github pages service, so that you do not need to provide a server, and the project has its own automated deployment service.
1: First, one copy of Fork is in its own warehouse. Second, apply for Tokens. Check all the Tokens. Otherwise, you have no permission.
https://github.com/settings/tokens
3: [Setting] – [Secrets] - [New secret] Fill in the token just applied for, and the name must be filled in TOKEN in capital four: [Actions] – click [I understand my workflows, go ahead and enable them] to start!
GitHub Page In the settings, find GitHub Page, select the gh pages branch · folder root and save it. Now you can see the access address.
Later, it will be prompted that the domain name nav.xiejiahe.com is used, which is the author's. If you don't need to bind the domain name, you can delete the CNAME in the gh pages branch or change it to your own.
Submit Commit to edit the 'unimportant' file under the main branch master. For example, saving README.md can trigger Action!
The Action completes the construction and is now accessible.
Modify the description navigation data directory dataconfig/index.ts configuration file. The address in the 23 lines is the Git address in the upper right corner. It is recommended to keep the footersrc/view/app.component.html bottom footersrc/view/app.component.html top link on the mobile phone, logo address src/index.html website name, statistical code assets/icon/logo.pnglogo map. Node.js needs to be installed for local construction,
Please refer to this article to record Node.js/vue/yarn installation # Download source code
#Enter directory
C:\user>cd *\nav-master\nav-master
#Installation dependency
npm install
#Compile
npm run build
#Start
The prompt of npm start completion is opened,
http://localhost:port
Port
September 16, 2020
1442 Reading
0 Comments
0 likes
//