git随笔

 

repo init -u ssh://wangxy@git.fd565.com:29418/Product/F3/Lichee
repo init -u ssh://wangxy@git.fd565.com:29418/Product/F3/Android

rm .repo/ -rf

rm ~/.ssh/* -rf

ssh-keygen

cat ~/.ssh/id_rsa.pu

repo sync -j8


————————————————————————————————————————————————————————————————————————————————————

git clone  ssh://wxy00@192.168.2.174:29418/MR133_CameraProcess.git

git status

git add 修改的文件    (git add . -A)


git commit -m "修改的信息,说明"

 

git push origin HEAD:refs/for/master


git diff rootdir/init.rc


git add arch/arm/configs/sun8iw11p1smp_androidm_defconfig


错误解决方案:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 wangxy@git.fd565.com:hooks/commit-msg ${gitdir}/hookS

git commit --amend --no-edit

 

博客:
https://segmentfault.com/a/1190000015044312?utm_source=tag-newest

https://blog.csdn.net/weixin_38317875/article/details/80925750


git add ap6256/*

 

cat linux-3.10/.config |grep "CONFIG_BCMDHD_NVRAM_PATH"

 

 

 

——————————————————————————————————————————————

gitlab 本地服务器搭建

1.安装必须的一些服务:
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
sudo apt-get install -y postfix
使用左右键和回车键选择确定、取消,弹出列表选项的时候,选择 Internet Site

2.信任 GitLab 的 GPG 公钥:
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null

3.根据版本,选择对于的内容写入/etc/apt/sources.list.d/gitlab-ce.list
详见https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial main

4.安装 gitlab-ce
sudo apt-get update
sudo apt-get install gitlab-ce

5.执行配置
sudo gitlab-ctl reconfigure

6.启动gitlab
sudo gitlab-ctl start

7.浏览器进行访问
http://电脑的IP地址

8.第一次进入,需要输入管理员账号的密码,以方便后期的管理。
输入好之后,就可以以管理员进行登录,账号是root,密码就是你刚才输入的密码。

9.成功

 

 

 

Git 全局设置
git config --global user.name "panda-wangxy"
git config --global user.email "158670198@qq.com"

创建一个新仓库
git clone git@gitlab.com:panda-wangxy/slm326_wxy.git
cd slm326_wxy
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

推送现有文件夹
cd existing_folder
git init
git remote add origin git@gitlab.com:panda-wangxy/slm326_wxy.git
git add .
git commit -m "Initial commit"
git push -u origin master

推送现有的 Git 仓库
cd existing_repo
git remote rename origin old-origin
git remote add origin git@gitlab.com:panda-wangxy/slm326_wxy.git
git push -u origin --all
git push -u origin --tags

 

git branch -a
git checkout -b Release origin/Release
git checkout master


优质博客:
https://blog.csdn.net/hellocsz/article/details/89785617

https://www.cnblogs.com/helios-fz/p/10932562.html

 

git@github.com:panda-wangxy/SLM.git
echo "# SLM" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:panda-wangxy/SLM.git
git push -u origin main
git remote add origin git@github.com:panda-wangxy/SLM.git
git branch -M main
git push -u origin main

 

posted @   panda_w  阅读(221)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示