git에 대한 좋은 소식을 들었습니다. 설치하기 전에 시도해보고 싶습니다. 만약 내가 학교에서 자식을 사용하고 싶었다면 이것도 플래시 드라이브에 넣는 것이 좋을 것이다. /path/to/git init
과 같은 전체 경로를 사용할 수 있습니까?설치하지 않고 git을 사용할 수 있습니까?
나는 Mac OS X를 주로 사용하므로 질문은 대부분 Mac 용이지만 다른 OS에서도 가능한지 알고 싶습니다.
편집 :
출처에서 컴파일. 다음 명령을 사용했습니다 :
cd git-1.7.5.1 #this is the decompressed dir containing src
make configure
./configure --prefix=/path/to/install/git
make all
sudo make install
이 방법의 단점은 일단 컴파일되면 200MB의 막대한 비용이 들게된다는 것입니다. 그래서 나는 jgit를 대답으로 선택했습니다. jgit.sh
는 2메가바이트보다 작하고 다음 명령을 지원합니다
add Add file contents to the index
branch List, create, or delete branches
checkout Checkout a branch to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
daemon Export repositories over git://
diff Show diffs
fetch Update remote refs from another repository
init Create an empty git repository
log View commit history
merge Merges two development histories
push Update remote repository from local refs
rm Stop tracking a file
tag Create a tag
version Display the version of jgit
당신은 jgit.sh
여기에서 다운로드 할 수 있습니다 http://www.eclipse.org/jgit/download/
(
chmod +x jgit.sh
에 기억) 그 정도 의지. 비록 당신이 그것을 제거하지 않더라도, 당신은 그것이 걸리는 몇 메가를 통지하지 않을 것이라는 점을 확신합니다. –@Matt 완전히 제거 할 수 있는지 확신 할 수 없었습니다. 바라건대 제거는 이전의 경로로 되돌아 갈 것입니다. 같은 날 설치 제거에만 설치하는 것을 좋아하지 않습니다. 뒤에 남겨진 것이 항상 있습니다 :/ – styfle
제거 후 남아있는 파일의 예를 들려 줄 수 있습니까? – Blender