어쨌든, 나는 /
에서 git repo를 시작했다. 8GB sd 카드에 설치된 beaglebone black의 ARM 우분투 만 있으면 ARM 우분투가 섹터 SD 카드 이미지로 섹터를 차지하므로 ZFS 또는 BTRFS. 리눅스 머신과 체크 아웃 브랜치에 sd 카드를 마운트 할 수 있습니다.
cd/
sudo git init
sudo vi .gitignore
/dev/
/lost+found/
/media/
/mnt/
/opt/
/proc/
/run/
/srv/
/sys/
/tmp/
/var/log/
sudo git add -A
sudo du -sh .git
297M .git
git config --global user.name 'Your Name'
git config --global user.email [email protected]
sudo git commit -m "initial update and network configured"
sudo du -sh .git
308M .git
폴더 또는 내가 무시할 수있는 파일을 제안하십시오. 나는 목록과 문제들을 무시하고이 대답을 계속 업데이트 할 것이다.
2013년 7월 18일 인도 표준시 21시 59분 0초 나의 첫번째 체크 아웃 쓴 경험이 저를 떠났다. 이전 커밋을 체크 아웃하려 할 때 잠금 실패가 발생했습니다. 출력을주의하지 않는 실수를 범했습니다.
그런 다음 비글 본에서 SD 카드를 제거하고 내 우분투 데스크톱에 마운트했습니다. 각 파티션 /media/rootfs/
및 /media/boot/
에 대해 2 개의 마운트 포인트를 제공합니다. /media/boot/
을 /media/rootfs/boot/uboot
에 다시 마운트 했으므로 이제 파일 시스템은 BeagleBone에서 부팅 된 라이브 파일 시스템과 정확하게 닮았습니다.
$ sudo cd /media/rootfs
$ sudo git log
commit 8bf5b7031bc1aee6392272da4eae2b808b46912f
Author: gowtham <[email protected]>
Date: Thu Jul 18 12:04:05 2013 +0000
remotedevicecontroller with camcapture-compression option
commit 774765de36a0c3cc7280a29275c37928de982f6e
Author: gowtham <[email protected]>
Date: Thu Jul 18 06:19:48 2013 +0000
before installing remotedevicecontroller with camcapture-compression
commit 19d5f3f66f29cbe925b8743c7248770d1f1d6ba4
Author: gowtham <[email protected]>
Date: Wed Jul 17 13:34:33 2013 +0000
ffmpeg installed by remotedevicecontroller
commit 691c20afd7b166103dabc2561c72eb94c172e726
Author: gowtham <[email protected]>
Date: Wed Jul 17 14:44:17 2013 +0000
initial update and network configured
$ sudo git stash
[sudo] password for gowtham:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
You do not have the initial commit yet
그러나 .git/
는 /media/rootfs/
에 존재한다. 아래의 코멘트, 내가 한 실수.
당신은 git를 사용하여 모든 파일을 추적 할 수 있으며,주의 할 수 있듯이 몇몇 디렉토리를 꽤 빨리 무시하고 싶을 것입니다. 그러나 CERN 사람들은 실제로 어떤 대안도 가지지 않으므로 접근 방법을 취하고 있다고 생각합니다. 당신은 대안을 많이 가지고 있으며 양면에서 문제를 다루기 위해 몇 가지 문서를 읽는 것을 고려할 수도 있습니다 (실제와 이론). – mnagel
@mnagel 때로는 가장 쉬운 방법 :) – neckTwi