20,182,326 experiment a "Linux Foundation and Java development environment" test report

20182326 2019-2020-1 "Object-oriented programming and data structures" a test report

Course: "Programming and Data Structures"
Class: 1823
Name: Liu Yingjie
Student ID: 20182326
experiments Teacher: Johnny
experiment Date: September 9, 2019
Compulsory / Elective: Compulsory

1. Experimental content

2. Experimental procedure and results

  1. Write a program and run
    image
    image
  2. Debugging
    image
  3. Uploaded to the cloud code
    image

    3. Experimental problems encountered in the process and settlement process

  • Question 1: git push no target
    image
  • Problem 1 Solution: git remote add origin code cloud https link
    and then enter the following two commands
$git fetch origin
$git merge origin/master

To upload.

  • Question 2: reject the merger has nothing to do history
    image
  • Problem 2 Solution:
    remote warehouse and associated local warehouse, then git pull integrate local and remote warehouse warehouse
git branch --set-upstream-to=origin/master master
git pull --allow-unrelated-histories
  • Question 3: If you still can not upload code to the cloud
  • Question 3 Solution: Available git push -u origin master forced to upload
  • Question 4: fatal: unable to resolve HEAD
    image
  • Question 4 Solution: image
    Delete the local git repository git clone again
  • Question 5: How do I delete a local repository?
  • Question 5 Solution:
$git branch
$git init
ls -a
$rm -rf .git

Other (perception, thinking, etc.)

The operation code uploaded to the cloud will always be some problems. This may in some places and I have not reason to follow the tutorial steps. After I try again when on the line.

Reference material

Guess you like

Origin www.cnblogs.com/20182326lyj/p/11516480.html