---
title: "Git"
author: "vivus"
date: "2014-01-02T11:39:45Z"
tags: []
categories: ["开源软件"]
slug: "git"
draft: false
lastmod: "2014-01-02T17:53:11Z"
id: 1998250
url: "https://vivus.iteye.com/blog/1998250"
---

List all the files that ever existed in a Git repository:
git log --pretty=format: --name-status | cut -f2- | sort -u
git log --pretty=format: --name-only --diff-filter=A | sort -

配置Git用户名和密码，避免每次push等都要输入：
<http://stackoverflow.com/questions/6031214/git-how-to-use-netrc-file-on-windows-to-save-user-and-password>