Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
directory = repo.directory r = git.Repo(directory) if r: r.git.reset('--hard') if r.remotes[repo.remote]: r.remotes[repo.remote].pull()
我想保存对我的r对象的任何操作的标准输出,包括任何.reset或.pull调用 - 我该怎么做呢?
r
.reset
.pull