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
- Based on the command line and IDE (Intellj IDEA Easy Tutorial) ( simple http://www.cnblogs.com/rocedu/p/4421202.html) Java program editing, compiling, running and debugging . (The experiment uses the command line)
- Exercises Linux basic commands;
- learning skills JDB to debug Java programs: https://www.cnblogs.com/rocedu/p/6371262.html
- write simple Java programs.
2. Experimental procedure and results
- Write a program and run
- Debugging
Uploaded to the cloud code
3. Experimental problems encountered in the process and settlement process
- Question 1: git push no target
- 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
- 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
- Question 4 Solution:
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.