我想为我的学校编写一个Messenger。因此我需要一些可以保存数据的服务器。我已经找到了可以保存数据的GitLab,我已经知道如何使用Java应用程序下载文件以及如何读取文件。
但现在我的问题是:是否可以使用Java应用程序编辑GitLab上的.txt文件?
发布于 2018-10-09 10:28:07
试试以下代码:
git clone <url to repo> // clone the repo
cd <repo name> // go in directory of the repo
git checkout -b <new branch name> //create a new branch
//edit files
git add . //this stages your changed files.
git commit -m "<commit message>" //this commits your changes to the local repo
git push origin <branch name> //pushes the file to the server
https://stackoverflow.com/questions/-100002856
复制相似问题