git operate several problems encountered

Question 1-- being given commit: Please tell me who you are ......

Solution Overview: This is the time information is created git folder imperfections caused (in accordance with the operating manual on the home page to be really missing this step), so the need for information supplement.
To do: So the solution is when this error message appears, execute the following command at the command line:
git config --global user.name "name"
git config --global user.email "mailbox"
finished entering before then perform git commit that is resolved.
Lessons learned: Create a folder git config perfect time to remember information.


2-- problem can not be completed remotely push operation

Solution Overview: the possibility can not be completed push is diverse, a matter of personal encounter is the presence of local files that do not exist (README.md) remote repository.
To do: Before git push to a remote repository, the first remote file synchronization to a local warehouse.
git pull --rebase origin master
lessons: To ensure that a remote repository files are present locally, this case may not check README.md when creating the repository.


3-- problem can not add folders to the repository

Solution Overview: practical because this folder is empty, so only need to add files.
To do: This is the folder you want to add docs, so proceed as follows:
Touch lab-0_report.md
git add docs /
git the commit -m "xxxxxx"
lessons learned: git add track is not empty folders


Download the issue 4-- input method can not be used

Solution Overview: In order to write mkdown so easy downloading Sogou input method, but it is not working, check the information known linux Chinese input methods are dependent on the input method framework, Sogou input method to be based on fcitx.
To do: according to the following method to modify, system setting-> language support-> change the default ibus fcitx, then restart the virtual machine will be able to find Sogou input method in the language bar.
Lessons learned: To learn more about the characteristics of different environments.

Guess you like

Origin blog.csdn.net/saber_jk/article/details/82845986