Before you can push to a remote repository, to avoid conflicts, often starting with a remote repository update, and then add the file, and then commit to the staging area, the recent push.
Update using the commandgit pull
1
2
3
4
5
6
7
8
9
10
11
12
|
# git pull
remote: Counting objects: 3,
done
.
remote: Compressing objects: 100% (2
/2
),
done
.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3
/3
),
done
.
来自 https:
//github
.com
/xxx/gitDemo
117adf3..90033cd master -> origin
/master
更新 117adf3..90033cd
Fast-forward
newText | 1 +
1
file
changed, 1 insertion(+)
create mode 100644 newText
|